无法手动将签名的 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.
奇怪的是,当我使用调试签名密钥执行相同的过程时,一切都很好,我可以安装并运行该应用程序.
以下是程序的步骤:
我选择释放键,输入密码.
我选择发布构建类型而不是调试
以防万一我还在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 次,所以我认为这个问题不仅仅是一个输入错误的密码,也我可以使用标准的调试安卓签名密钥进行这项工作.
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.
可能是您的开发版本没有正确卸载.
试试这个,
只需转到设置 -->应用程序 -->单击您的应用程序.--->在操作栏菜单的应用信息页面中,将有一个名为"的选项.为所有用户卸载点击那个.您的应用程序将被完全卸载,现在您可以尝试安装新版本,没有问题.希望对你有帮助
Just go to the Settings --> Apps --> Click on your App. ---> In App info page at the action bar menu there will be an option called " Uninstall for All users " click that. Your app will be completely uninstalled and now you can try installing the new version with no issue. Hope this will help you
注意:这适用于棒棒糖及以上.请参阅随附的屏幕截图.
NOTE : This is for lollipop and above. Refer the screenshot attached.
这篇关于无法手动将签名的 apk 安装到设备,出现错误“未安装应用程序"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!