我从sdk示例代码中导入了com_example.android.softkeyboard中的现有项目。 当我试图运行它时,启动取消,它会给出一些错误,如下所示
[2013-01-07 22:09:45 - com_example_android_softkeyboard] ------------------------------ [2013-01-07 22:09:45 - com_example_android_softkeyboard] Android发布! [2013-01-07 22:09:45 - com_example_android_softkeyboard] adb正常运行。 [2013-01-07 22:09:45 - com_example_android_softkeyboard]未找到Launcher活动! [2013-01-07 22:09:45 - com_example_android_softkeyboard]启动只会同步设备上的应用程序包! [2013-01-07 22:09:45 - com_example_android_softkeyboard]执行同步 [2013-01-07 22:10:00 - com_example_android_softkeyboard]警告:应用程序未指定API级别要求! [2013-01-07 22:10:00 - com_example_android_softkeyboard]设备API版本为10(Android 2.3.4) [2013-01-07 22:10:00 - com_example_android_softkeyboard]将com_example_android_softkeyboard.apk上传到设备'emulator-5554' [2013-01-07 22:10:00 - com_example_android_softkeyboard]安装com_example_android_softkeyboard.apk ... [2013-01-07 22:10:17 - com_example_android_softkeyboard]由于应用程序签名不同,重新安装失败。 [2013-01-07 22:10:17 - com_example_android_softkeyboard]您必须执行应用程序的完全卸载。警告:这将删除应用程序数据! [2013-01-07 22:10:17 - com_example_android_softkeyboard]请在shell中执行'adb uninstall com.example.android.softkeyboard'。 [2013-01-07 22:10:17 - com_example_android_softkeyboard]发布已取消!
请帮我运行申请。
答案 0 :(得分:0)
日志告诉您问题究竟是什么以及如何解决问题:
Installing com_example_android_softkeyboard.apk...
[2013-01-07 22:10:17 - com_example_android_softkeyboard] Re-installation failed due to different application signatures.
[2013-01-07 22:10:17 - com_example_android_softkeyboard] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2013-01-07 22:10:17 - com_example_android_softkeyboard] Please execute 'adb uninstall com.example.android.softkeyboard' in a shell.
[2013-01-07 22:10:17 - com_example_android_softkeyboard] Launch canceled!
您的模拟器上已安装com.example.android.softkeyboard
版本,您需要在安装新版本之前删除(卸载)该版本。