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