Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Android开发蓝牙聊天示例不工作_Java_Android - Fatal编程技术网

Java Android开发蓝牙聊天示例不工作

Java Android开发蓝牙聊天示例不工作,java,android,Java,Android,我正在尝试使用eclipse加载android蓝牙聊天示例: 我没有篡改任何代码,但马上就有23个java错误,有人能帮我吗 谢谢 这是我得到的 Description Resource Path Location Type The import android.view.Window is never used BluetoothChat.java /BluetoothChat/src/com/example/android/BluetoothChat lin

我正在尝试使用eclipse加载android蓝牙聊天示例:

我没有篡改任何代码,但马上就有23个java错误,有人能帮我吗

谢谢

这是我得到的

Description Resource    Path    Location    Type

The import android.view.Window is never used    BluetoothChat.java  /BluetoothChat/src/com/example/android/BluetoothChat    line 33 Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 481    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 488    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 489    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 480    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 460    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 459    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 438    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 437    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 413    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 412    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 393    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 392    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 388    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 371    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 370    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 339    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 338    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 323    Java Problem
The field PowerManager.SCREEN_BRIGHT_WAKE_LOCK is deprecated    AccelerometerPlayActivity.java  /AccelerometerPlay/src/com/example/android/accelerometerplay    line 75 Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 322    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 302    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 303    Java Problem
No exception of type IOException can be thrown; an exception type must be a subclass of Throwable   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 283    Java Problem
The method e(String, String, Throwable) in the type Log is not applicable for the arguments (String, String, IOException)   BluetoothChatService.java   /BluetoothChat/src/com/example/android/BluetoothChat    line 284    Java Problem

您无法在emulator上运行蓝牙程序。
在android设备上运行程序

发布相关源代码。