I got this error while installing the android application (Parse Error : There is a problem parsing the package.
). I did the following steps.
First time I installed the application and it works fine.
I made changes to the existing application and change the version no in Manifest file.
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.openintents.samples.BasicOpenARDemo" android:versionCode="2" android:versionName="1.0.1">
Then I export the application and finish the code signing process. For this, Right Click your Project node > select Export. There you will see a wizard. Follow the steps and finish the code signing also.
I got the ARDemo.apk file, Then I changed it’s name to ARDemo1.apk
Then I shipped this apk file to mobiles SD Card and started the installation I got the above error.
I googled, they say that problem with unpacking manifest file.
Can anyone tell me what could be wrong with me?
I've only seen the parsing error when the android version on the device was lower than the version the app was compiled for. For example if the app is compiled for android OS v2.2 and your device only has android OS v2.1 you'd get a parse error when you try to install the app.
Similar issue, using this "borrowed" and slightly modified code:
Needed to change the file creation to this (comma instead of plus in the File constructor, was missing '/' after the download directory):
For anyone else having this issue the only time i ever got this error was when the API version in your Android Build configuration does not match what's on the physical device.
Go into Eclipse and right click on your project and go to properties. Select Android--WHICH BRINGS YOU TO ANDROID BUILD TARGET. Adjust you target to match the device and see if that resolves the issue.
Installation can give the specified error at least in following cases:
As mentioned by @Veneet Reddy install it via ADB.
Go to ADT Bundle/sdk/platform-tools past your
.apk
file and run command prompt as administrator.Then run
adb devices
command which will list the connected devices or emulators that are running.Then run
adb -s yourDeviceID install yourApk.apk
Note: uninstall the app if you have already installed before installing again.
I had a bad tag pair in my manifest file.
Basically got in when I copied a bad
meta-data
sample code from payu pdf file. Crap.