There was a problem with Android parsing the package

Source: Internet
Author: User

When Android users download our WCC application, there are occasional "parser package problems" phenomenon, the following is the experience of gradual troubleshooting:

1. First make sure that the package itself is not a problem.

Detection method: Other mobile phones Use the same download method and download again.

Solution:

  • The Android system does not support package names that contain Chinese file names and full-width alphabetic symbols, and if used in the application, make changes.
  • The Android system does not support package names beginning with uppercase letters , such as please change to lowercase.

2. Again ensure that the downloaded package is complete, the download process may appear the APK file damage, resulting in no way to parse.

Detection method: Compare the download apk and the server apk size is not exactly the same.

Solution:

    • Let the user download it again or another channel.
    • If it is the Download function section of the Automatic download check: The size of the buffer to be read at the time of download is changed from 1024 to 128 or 64 and then automatically downloaded.

int buffersize = 1024; 128//64
byte[] buffer = new Byte[buffersize];

There was a problem with Android parsing the package

Related Article

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.