更新Android应用程序

更新Android应用程序,android,Android,当我尝试在平板电脑上安装android应用程序时,出现以下错误 ERROR: Re-installation failed due to different application signatures. You must perform a full uninstall of the application. WARNING: This will remove the application data! Please execute 'adb uninstall com.spundhan.ex

当我尝试在平板电脑上安装android应用程序时,出现以下错误

ERROR:
Re-installation failed due to different application signatures.
You must perform a full uninstall of the application. WARNING: This will remove the application data!
Please execute 'adb uninstall com.spundhan.expensetracker' in a shell.
 Launch canceled! 


这意味着您的平板电脑上已经安装了此应用程序。例如,当您从eclipse安装它,然后尝试从play商店更新它时,就会发生这种情况。您需要卸载该应用程序,然后重新安装。eclipse和play store有不同的签名,这就是为什么你不能用不同的签名更新应用程序。

是的,当你已经在设备或模拟器上安装了apk,然后又试图从市场或任何其他媒体上安装相同的应用程序时,这种情况会发生很多次

因此,这将尝试替换您的应用程序。这将显示警告信息

“您已经安装了Example.apk,要进行安装,必须先卸载。”


因此,一旦卸载应用程序,它将删除与应用程序相关的所有数据。所以,希望你下次关心这个

这显然意味着您没有正确安装应用程序,因此您可以尝试通过转到
设置=>管理应用程序=>卸载您的应用程序,即expensetracker
,或者将您的设备连接到计算机并打开命令提示符,然后转到您的android sdk-

D:\android\android sdk windows\platform tools>adb卸载com.spundhan.expensetracker


因此,它将正确卸载您的应用程序,并希望您再次尝试安装时不会发现任何错误。

我不希望卸载会丢失数据。。如何添加签名,以便应用程序在我第二次安装时更新您不能这样做。如果你从不同的地方安装,你将不得不卸载。在不卸载的情况下,我应该如何更新同一个应用程序?你在emulator或real phone中测试吗?在real phone上…当我对源代码进行一些更改并尝试安装时,会出现一个错误,显示不同的签名。一旦你卸载应用程序并重新启动应用程序,然后再安装将显示相同的错误?卸载应用程序将删除我不想丢失的数据。如果你能将我的答案标记为正确,那就太好了。谢谢