eclipse 由于应用程序签名不同,重新安装失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5719701/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Re-installation failed due to different application signatures
提问by Quadrivium
Possible Duplicate:
Why does the app signature change in Android after a classpath change?
I started getting errors in my Eclipse Workspace for several but not all of my projects. I noticed is was the oldest projects. I found help for the error, and built my own debug.keystore and changed the java build path to that folder.
我的 Eclipse 工作区开始出现一些错误,但不是所有项目。我注意到是最古老的项目。我找到了该错误的帮助,并构建了我自己的 debug.keystore 并将 java 构建路径更改为该文件夹。
Now when I try to run any of the projects in an emulator I get this error:
现在,当我尝试在模拟器中运行任何项目时,出现此错误:
[2011-04-19 10:11:20 - enga] Re-installation failed due to different application signatures.
[2011-04-19 10:11:20 - enga] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-04-19 10:11:20 - enga] Please execute 'adb uninstall com.engatest' in a shell.
[2011-04-19 10:11:20 - enga] Launch canceled!
I tried removing the application from the menu in the emulator, got through the motions and drag it to the trash but it doesn't get removed.
我尝试从模拟器的菜单中删除该应用程序,完成动作并将其拖到垃圾箱中,但它没有被删除。
I tried running in terminal: adb uninstall com.dwclogic.engatest
but the command wasn't found, adb probably not setup globally on my mac. I am new to the Mac and am unsure how to get the execute path for this fixed but that's an whole other issue.
我尝试在终端中运行:adb uninstall com.dwclogic.engatest
但未找到该命令,adb 可能未在我的 mac 上全局设置。我是 Mac 的新手,不确定如何获得此修复的执行路径,但这是另一个问题。
where do I try running this command? Is there any other ways to fix this problem.
我在哪里尝试运行此命令?有没有其他方法可以解决这个问题。
回答by rocky3000
- You can remove an app in your emulator via Settings->Applications->manage Applications. There you can see a list of all installed apps. If you then click on the app you want to uninstall, a screen opens, with an uninstall option.
- A second option for uninstall is the use of "adb uninstall". adb is a command line tool which is located under the Android SDK folder. You can find it there in a folder called "platform-tools". So you have to navigation to your SDK installation and use a terminal window to run adb there.
- 您可以通过设置->应用程序->管理应用程序删除模拟器中的应用程序。在那里您可以看到所有已安装应用程序的列表。如果您随后单击要卸载的应用程序,则会打开一个带有卸载选项的屏幕。
- 卸载的第二个选项是使用“adb uninstall”。adb 是一个命令行工具,位于 Android SDK 文件夹下。您可以在名为“platform-tools”的文件夹中找到它。所以你必须导航到你的 SDK 安装并使用终端窗口在那里运行 adb。
Dragging an icon onto the trash does not uninstall an app. It only removes it's icon from the home screen.
将图标拖到垃圾箱上不会卸载应用程序。它只会从主屏幕上删除它的图标。
回答by Yahyaotaif
I get that error when my physical device is hooked up in my PC's USB port. If yours is plugged in try to unplug it
当我的物理设备连接到我的 PC 的 USB 端口时,我收到该错误。如果您的插头已插入,请尝试将其拔下
回答by Faakhir
Go to Settings -> Application -> Manage Application -> "tab on your application" -> uninstall
转到设置 -> 应用程序 -> 管理应用程序 -> “应用程序选项卡” -> 卸载
Run your application from Eclipse again and it'll definitely work for you :)
再次从 Eclipse 运行您的应用程序,它肯定对您有用:)