简体   繁体   中英

Android parse error Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED (because of Capital letters in package name)

This question is linked with my earlier question. please see below link.

Android - Change package name of live application

So now i am buiding my apk with older package name ie,'AnantApps.Moodlytics'. I also have made all required changes for that.

but after that when i try to run it on device, it gives me a console error like this.

[2013-10-22 11:26:03 - Moodlytics] Android Launch!

[2013-10-22 11:26:03 - Moodlytics] adb is running normally.

[2013-10-22 11:26:03 - Moodlytics] Performing Anantapps.Moodlytics.ui.ActivitySplashScreen activity launch

[2013-10-22 11:26:04 - Moodlytics] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.

[2013-10-22 11:26:07 - Moodlytics] Uploading Moodlytics.apk onto device '4E4400F02B00CE54'

[2013-10-22 11:26:08 - Moodlytics] Installing Moodlytics.apk...

[2013-10-22 11:26:16 - Moodlytics] Installation error:

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED [2013-10-22 11:26:16 -

Moodlytics] Please check logcat output for more details. [2013-10-22

11:26:16 - Moodlytics] Launch canceled!

After that i made one apk file. but here also, it gives me an error while installing apk.

Parse Error : There was a problem parsing this package

I think this error is coming because of the capital package name. So now, i am in very much trouble. I can't change the package name to small letters and with capital letters the code is not working.

So help me guys. what should i do? How can i give un update to my already live application on Google Play which has 'capital letters' in package name?

So finally i find solution. Hope it will help others who are facing this issue.

I ran project in Linux OS. In linux os, eclipse doesn't give any error for capitalised package name.

1.) I renamed package name with capital letters

2.) Then I imported appropriate R in java files. (in my case it is AnantApps.Moodlytics.R). (We can replace old R with new one easily by find/replace functionality of eclipse)

And thats it.

Main problem is that you need to have Ubuntu Linux OS for this.

Please You should delete your gen folder from your workspace..After that give build project. Now You can run your application..Please try it.

Using Android Studio. U must change in manifest file like that

<uses-sdk android:minSdkVersion="14" />

and Also change In Gradle Script

Gradle Script->build.gradle(Module:app)
defaultConfig {
        applicationId "" >>//Your Package Name
        minSdkVersion 15 >>Here also give minsdkversion which is given in                        manifest file
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }

Package Parsing error solution

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM