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

时光总嘲笑我的痴心妄想 提交于 2019-12-24 00:43:47

问题


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 i.e.,'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?


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/19510462/android-parse-error-installation-error-install-parse-failed-manifest-malformed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!