Android: analysis error while parsing manifest. Termination of installation

I know that the question of death was asked here, but I can’t find a solution in all the answers offered and drive me crazy.

I have an application that I configured to download updates from my own server. This update is perfectly installed on some types of phones, but does not work on others (namely, Droid Incredible 2).

The error that he warns when I try to install the update on some phones is:

"Analysis error: the problem is parsing the package."

The log code shows:

INFO/ActivityManager(1482): Starting activity: Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/download/application.apk typ=application/vnd.android.package-archive cmp=com.android.packageinstaller/.PackageInstallerActivity } from pid 4620 WARN/PackageParser(2528): Skipping dir: /mnt/sdcard/download/application.apk WARN/PackageInstaller(2528): Parse error when parsing manifest. Discontinuing installation 
  • I sign and export this application with a valid key using the Eclipse tool, with MinSDK version 3.
  • I am sure that the version code in the downloaded application is higher than that of the existing application.
  • I am sure that the .apk file name is the same in both applications.

What else can I do wrong?

edit: I downloaded this application in the Android Market ... when I try to install on problem phones, I get a warning that "the package file was not signed correctly." On other phones, it downloads and installs just fine.

+4
source share
2 answers

The problem was that I was updating the application that was originally installed through adb and not through the market.

+3
source

If you are trying to download apk than installing it programmatically, be careful to use AsynTask or execute threads correctly. I ran into the same error because the activity used to capture an incomplete apk to install it.

Now I am using AsynTask. doInBackground (performs loading), onPostExecute (adds pending intentions and calls startActivity to open the installation screen).

+2
source

Source: https://habr.com/ru/post/1394687/


All Articles