无法将签名的APK手动安装到设备,出现错误“未安装应用" [英] Cannot install signed apk to device manually, got error "App not installed"
问题描述
我想将我的应用发布给GooglePlay,但首先我想对签名的apk做最后一次测试,以确保所有使用的API密钥都能与发行版(GMaps,Facebook等)一起正常使用
I'd like to publicate my app to GooglePlay but first i would like to do a last testing with the signed apk to ensure that all of the used API keys are working correctly with the release version (GMaps, Facebook, etc)
所以我只是使用发布密钥制作了我的应用程序的签名版本,当我尝试将应用程序安装到设备上时,我出现错误:
So i just made a signed version of my app with our release key and when i try to install the app to the device i got an error:
我试图将apk复制到设备上,并使用apk安装程序应用程序进行安装.
I have tried to copy the apk to the device and install it with an apk installer app.
奇怪的是,当我使用调试签名密钥执行相同的过程时,一切都很好,我可以安装和运行该应用程序了.
Strange thing is when i do the same process with debug signing key, all is well, I can install and run the app.
以下是该过程的步骤:
我选择释放键,输入密码.
我确实选择发行版本类型,而不是进行调试
I do select release build type instead of debugging
以防万一,我还在gradle文件中定义了签名密钥,但我必须承认我不知道这是必需的.
Just in case i also defined in the gradle file the signing keys but I must admit i dont know is it necessary.
我现在已经尝试过7次7次,所以我认为这个问题是 密码输入错误,也我可以使用标准的调试Android签名密钥来完成此操作.
I tried like 7 seven times now so i assume this problem is not just a mistyped password, also I can make this work with the standard debug android signing key.
请帮助.
推荐答案
您可能正在使用android 5.0或更高版本的设备.
You may be using the android 5.0 or above device.
只需转到设置->应用程序->单击您的应用程序. --->在操作栏菜单的应用程序信息"页面中,将单击一个名为为所有用户卸载"的选项.您的应用将被完全卸载,现在您可以尝试安装新版本了,没有任何问题.希望对您有帮助
从下面的链接检查我的解决方案.
Check my solution from below link.
希望它会对您有所帮助.
Hope it will help you.
这篇关于无法将签名的APK手动安装到设备,出现错误“未安装应用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!