0

我正在 Eclipse 中开发一个 Android 应用程序,但是当我清理、构建和调试它时,它会在我的控制台中显示以下内容:

[2013-06-05 09:05:37 - TSRAndroidSystem] ------------------------------
[2013-06-05 09:05:37 - TSRAndroidSystem] Android Launch!
[2013-06-05 09:05:37 - TSRAndroidSystem] adb is running normally.
[2013-06-05 09:05:37 - TSRAndroidSystem] Performing com.lk.lankabell.android.activity.LoginPage activity launch
[2013-06-05 09:05:37 - TSRAndroidSystem] Automatic Target Mode: launching new emulator with compatible AVD 'test'
[2013-06-05 09:05:37 - TSRAndroidSystem] Launching a new emulator with Virtual Device 'test'
[2013-06-05 09:05:49 - Emulator] Failed to create Context 0x3005
[2013-06-05 09:05:49 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-06-05 09:05:51 - TSRAndroidSystem] New emulator found: emulator-5554
[2013-06-05 09:05:51 - TSRAndroidSystem] Waiting for HOME ('android.process.acore') to be launched...
[2013-06-05 09:06:42 - TSRAndroidSystem] HOME is up on device 'emulator-5554'
[2013-06-05 09:06:42 - TSRAndroidSystem] Uploading TSRAndroidSystem.apk onto device 'emulator-5554'
[2013-06-05 09:06:44 - TSRAndroidSystem] Installing TSRAndroidSystem.apk...
[2013-06-05 09:07:13 - TSRAndroidSystem] Re-installation failed due to different application signatures.
[2013-06-05 09:07:13 - TSRAndroidSystem] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2013-06-05 09:07:13 - TSRAndroidSystem] Please execute 'adb uninstall com.lk.lankabell.android.activity' in a shell.
[2013-06-05 09:07:13 - TSRAndroidSystem] Launch canceled!

我的模拟器正在运行。

是错误、警告还是说我必须解锁我的安卓模拟器屏幕?

4

4 回答 4

7

当您在多台计算机上进行开发时,通常会发生这种情况。

当您从 Eclipse 安装应用程序时,它使用您的调试密钥库对应用程序进行签名。不同的计算机具有不同的调试密钥库(它们只是自动生成的),因此您必须在重新安装之前从设备中完全删除该应用程序。

不知道为什么在模拟器上会发生这种情况,但只需从模拟器中完全删除应用程序,它应该可以工作。

于 2013-06-05T04:21:38.893 回答
7

实际上,当我使用手机测试我的应用程序时,这个场景多次出现

这是因为您已经TSRAndroidSystem在手机中安装了。发生错误是因为安装在手机中的应用程序使用debug keystore了与系统中不同的应用程序。

但在你的情况下,它发生在 emulator 中。这对我来说真的很奇怪。

您是否直接TSRAndroidSystem.apk在您的模拟器中安装了另一个系统中的开发?

通过从 Emulator 卸载已经安装的应用程序,我可以采取任何方式。然后运行您的项目,以便该应用程序将与debug keystore您的系统签名希望这将解决您的问题

于 2013-06-05T04:57:07.520 回答
1

这意味着您需要从上次启动它时安装的设备上卸载该应用程序。

于 2013-06-05T04:22:04.620 回答
1

当您在设备上安装了具有相同包名称的另一个应用程序时,通常会发生该错误。在你的情况下com.lk.lankabell.android

当您在多台计算机上开发时也会发生这种情况,这意味着不同的调试密钥,在这种情况下,具有相同软件包的应用程序就是您尝试安装的应用程序。但是由于您使用的是模拟器,因此情况并非如此。

在任何一种情况下:转到Settings > Apps您的模拟器或手机并卸载具有该特定包名称的应用程序,然后重试。并始终确保选择唯一的包名称以防止这种情况发生。

于 2013-06-05T04:24:55.213 回答