Android构建和安装错误:INSTALL_PARSE_FAILED_NOT_APK [英] Android Build and Installation error: INSTALL_PARSE_FAILED_NOT_APK
问题描述
当我尝试将APK构建到某些设备上时,出现这些错误.不知道发生了什么事.
Have these erro when i'm trying to build the apk to some devices. Have no idea whats going on.
当我第一次在设备上构建并安装apk时,我会明白这一点.
I get that when i build and install apk on device at the first time.
有人为此提供一些提示吗?
Someone have some tips for that?
[]
好吧,在密钥库上创建调试密钥后,我可以通过ADP构建apk并将其部署到设备上.但是,不知道为什么,错误只会返回...
Well, after creating a debug key on keystore, i can build and deploy the apk via ADP to the device. But, dont know why, the error just return...
现在,我们还有其他错误:
And now, we have other error:
更新:
我已修复了删除所有Android SDK和Android Studio并重新安装的问题.
推荐答案
可以通过在运行/调试配置"对话框中添加安装标志-r -t来解决问题,如给定的图像所示. 您可以在此处找到运行/调试配置对话框的位置到Jetbrains. 更新:根据Android Studio版本的不同,IDE中的运行/调试配置"位置可能会略有不同,但是请始终参考Jetbrains来查找所需的内容
The problem can be solved by addding the install flags -r -t in the Run/Debug Configuration Dialog like it's showed in the given image You can find Run/Debug Configuration Dialog location here according to Jetbrains. UPDATE: Depending on the Android Studio version the Run/Debug Configuration position in the IDE can be slightly different, but always refer Jetbrains to find whatever you are looking for
这篇关于Android构建和安装错误:INSTALL_PARSE_FAILED_NOT_APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!