Android 构建和安装错误:INSTALL_PARSE_FAILED_NOT_APK [英] Android Build and Installation error: INSTALL_PARSE_FAILED_NOT_APK

查看:121
本文介绍了Android 构建和安装错误: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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆