A workaround for parsing package errors when installing APK on Android phone

Source: Internet
Author: User
This afternoon when learning about Android development, when learning to develop a GridView in the documentation, debug the program on the emulator everything is OK, as shown in:

However, when the bin directory under the hellogridview.apk copy to the M8 Android installation, there is a "parsing package error" prompt, after the online search for answers, after the comparison with the previous example, found that I was in the creation of Android project, Since the SDK used is version 2.3.3, the minsdkversion= "10" is selected, while the Android version of M8 is 2.2. So try to minsdkversion= "10" in Androidmanifest.xml Change to Minsdkversion= "5" as shown in:


Then run one more time and then copy the APK into the M8 and install it successfully!

In fact, minsdkversion version does not have to change to 5, as long as less than can be, if the API is larger than the real machine, there will be "parsing package error" prompt, this time as long as the minsdkversion version is less than or equal to the API version of the real machine OK. Personal experience, with everyone!

A workaround for parsing package errors when installing APK on Android phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.