[英]apk parse error on phone but works well on emulator
My application runs well on emulator but when I run on device it gives error parsing the package!! 我的应用程序可以在模拟器上很好地运行,但是当我在设备上运行时,它会在解析包时出错!
what changes should be made to make it work on device? 应该进行哪些更改才能使其在设备上运行?
Installation can give the specified error in following cases: 在以下情况下,安装会产生指定的错误:
Name of the package is changed after signing: Use the exact name as the signed package is (instead, adjust the name in Manifest)
Package is compiled against on higher API level: Correct the API level in Manifest file
Package is executed from SD-card: Run (install) the apk -file from phones memory OR use adb command to install it
Most likely, you are compiled against a higher API level. 很可能是针对更高的API级别进行编译的。 Go to your Manifest file and change this line
转到清单文件并更改此行
uses-sdk android:minSdkVersion="VERSION_NUMBER_YOU_USING"
to 至
uses-sdk android:minSdkVersion="3"
and see if you can install the apk on your device. 并查看是否可以在设备上安装apk。
Your minSdkVersion value in Android-Manifest.xml is more than your phone API level. 您在Android-Manifest.xml中的minSdkVersion值大于电话API级别。 reduce it to be installable on your phone.
减少它以使其可在您的手机上安装。 Find appropriate API level for Android version of your phone here:
在此处找到适用于您手机的Android版本的适当API级别:
1.5 : API level 3 1.5:API级别3
1.6 : API level 4 1.6:API级别4
2.0 : ApI level 5 2.0:ApI 5级
2.0.1: API level 6 2.0.1:API级别6
2.1: API level 7 2.1:API级别7
2.2: API level 8 2.2:API级别8
2.3: API level 9 2.3:API级别9
2.3.3: API level 10 2.3.3:API级别10
3.0: API level 11 3.0:API级别11
3.1: API level 12 3.1:API级别12
3.2: API level 13 3.2:API级别13
4.0: API level 14 4.0:API级别14
4.0.3: API level 15 4.0.3:API级别15
4.1: API level 16 4.1:API级别16
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.