Android 错误:在安装 APK 时解析包
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21808188/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error : Parsing the package while installing APK
提问by u3l
I'm trying to install my app by running Package Installer from the email attachment in Yahoo. My phone is on version 4.1 (Jellybean), so this should work, right?
我正在尝试通过从 Yahoo 的电子邮件附件运行 Package Installer 来安装我的应用程序。我的手机是 4.1 (Jellybean) 版本,所以应该可以,对吧?
However, I get an error saying that there was a problem parsing the package despite the fact that my AndroidManifest specifies a minSdkVersion
of 1, and my phone's is higher.
但是,尽管我的 AndroidManifest 将 a 指定minSdkVersion
为 1,并且我的手机更高,但我收到一条错误消息,指出解析包时出现问题。
I have enabled installing apk
from sources that aren't from the playstore on my phone. What am I missing?
我已启用apk
从手机上的 Playstore 以外的来源进行安装。我错过了什么?
回答by Ajay S
I get an error saying that there was a problem parsing the package.
我收到一条错误消息,说解析包时出现问题。
This because your app is not compatible with your device. It might your developer set the minSDKVersion
value to high and If your device API level is lower then minSDKVersion
then it gives parsing package error or your developer set the maxSDKVersion to lower than your device API level.
这是因为您的应用与您的设备不兼容。您的开发人员可能会将minSDKVersion
值设置为高,如果您的设备 API 级别较低,则会minSDKVersion
导致解析包错误,或者您的开发人员将 maxSDKVersion 设置为低于您的设备 API 级别。
For ex : If your device is Android 2.2 then your developer who made the APK set the minSDKVersion
to 10 then it wont work in the Android 2.2 and will give the parsing package error or If your developer set the maxSDKVersion
to 8 then app won't install above Android OS 2.2 and if you try to install then you will get the Parsing package error.
例如:如果您的设备是 Android 2.2,那么您制作 APK 的开发人员将 设置minSDKVersion
为 10,那么它将无法在 Android 2.2 中运行,并且会出现解析包错误,或者如果您的开发人员将 设置maxSDKVersion
为 8,则应用程序将不会安装在上面Android OS 2.2,如果您尝试安装,则会收到解析包错误。