-1

我正在尝试使用 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
4

1 回答 1

1

你不能在模拟器上运行蓝牙程序。在安卓设备上运行你的程序

于 2013-01-19T11:17:44.513 回答