我是新来的Android,只是试图将一个示例项目(蓝牙聊天应用程序)加载到我的智能手机(运行Android 2.3.4)。 Eclipse中的目标构建项目使用Android API级别15(Android 4.0.3)。当我尝试使用连接的手机进行“以Android应用程序运行”时,Android设备选择器会指出该设备不兼容,并且出现以下文本中显示的错误。我如何解决这个问题?当然,我不应该将我的构建目标降级到更低的API级别(10)以及可能的松散功能?不兼容的Android目标设备?
顺便说一句,同样的项目包括在这个清单:
<uses-sdk minSdkVersion="6" />
。
[2012-01-27 19:59:43 - BluetoothChat] Android Launch!
[2012-01-27 19:59:43 - BluetoothChat] adb is running normally.
[2012-01-27 19:59:43 - BluetoothChat] Performing com.example.android.BluetoothChat.BluetoothChat activity launch
[2012-01-27 19:59:43 - BluetoothChat] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2012-01-27 20:00:02 - BluetoothChat] WARNING: Application does not specify an API level requirement!
[2012-01-27 20:00:02 - BluetoothChat] Device API version is 10 (Android 2.3.4)
[2012-01-27 20:00:02 - BluetoothChat] Uploading BluetoothChat.apk onto device '304D1938E5584E7E'
[2012-01-27 20:00:02 - BluetoothChat] Installing BluetoothChat.apk...
[2012-01-27 20:00:03 - BluetoothChat] Re-installation failed due to different application signatures.
[2012-01-27 20:00:03 - BluetoothChat] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2012-01-27 20:00:03 - BluetoothChat] Please execute 'adb uninstall com.example.android.BluetoothChat' in a shell.
[2012-01-27 20:00:03 - BluetoothChat] Launch canceled!
非常感谢:)
为什么你会期望Android 2.3.4设备具有4.0.3的功能?更重要的是,您为什么期望SDK能让您编写不会在目标设备上运行的代码? – arootbeer 2012-01-27 18:22:11
因为我认为minSdkVersion =“6”可以让我在早期的版本上运行它...? – Graham 2012-01-27 19:45:08