+7 votes
533 views
in Android by
edited by

I have this error when installing the application for android (

Parse Error: There is a problem parsing the package.). I did the following steps.

  1. First time I installed the application and it works well.
  2. I made changes to the existing application and does not change the version in the manifest file.



samples.BasicOpenARDemo" android:versionCode="2" android:versionName="1.0.1"> 

Then I can export the application and finalize the process of signing code. To do this, right click on the project node> select Export. There you will see a wizard. Follow the steps and end code signing also.

 
 I have the apk ARDemo.archivo, then I changed the name to ARDemo1.apk
 
Then send me the apk file to SD card phones and began the installation I have the above error. I searched google, say the problem with unpacking manifest file. Can anyone tell me what could be wrong with me?

1 Answer

+13 votes
by (201k points)
You said the first time you installed the application worked well.
 
 The only difference in the steps between the two versions are:
 
  1. The version number (I assume that this will not participate in break anything)
  2.  The code
  3. The name of the apk .archivo
 
 
 
Try to rename the apk ARDemo1.archivo ARDemo.apk again (be sure to make a backup of the previous version) and see if that helps. My guess is it has something to do with the name of the apk.
 
If you do not work then you can remove the apk file name as the source of the problem and begin investigating 2) for the reconstruction of the previous version and see if you have the same problem again. If the problem does not exist with the revamped version of its old code, then you know it must be something to do with your code. I hope to take you somewhere.
by (201k points)
Installation specified error may occur at least in the following cases:

Package name is changed after the signing: use the exact name and signed package (in place, adjust the name on the manifest)

Package is built against the high level API: API level correct in the manifest file

Package runs from SD card: Run (installation) apk-file the memory of the phone or use adb command to install
Ask a Question
Welcome to WikiTechSolutions where you can ask questions and receive answers from other members of the community.

You can ask a question without registration.

Categories

...