本文介绍了Android解析错误安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED(因为包名中的大写字母)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题与我之前的问题有关.请看下面的链接.

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

Android - 更改实时应用程序的包名

所以现在我正在使用旧的包名称构建我的 apk,即AnantApps.Moodlytics".我也为此做了所有必要的更改.

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 发布!

[2013-10-22 11:26:03 - Moodlytics] adb 运行正常.

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

[2013-10-22 11:26:03 - Moodlytics] 执行 Anantapps.Moodlytics.ui.ActivitySplashScreen 活动启动

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

[2013-10-22 11:26:04 - Moodlytics] 自动目标模式:无法检测设备兼容性.请选择目标设备.

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

[2013-10-22 11:26:07 - Moodlytics] 将 Moodlytics.apk 上传到设备4E4400F02B00CE54"

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

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

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

[2013-10-22 11:26:16 - Moodlytics] 安装错误:

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

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

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

Moodlytics] 请检查 logcat 输出以了解更多详细信息.[2013-10-22

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

11:26:16 - Moodlytics] 发布取消!

11:26:16 - Moodlytics] Launch canceled!

之后我制作了一个 apk 文件.但在这里,它在安装 apk 时也给我一个错误.

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.

所以帮帮我吧伙计们.我该怎么办?我如何才能更新我在 Google Play 上已经上线的应用程序,该应用程序包名称中包含大写字母"?

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.

我在 Linux 操作系统中运行了项目.在 linux os 中,eclipse 不会对大写的包名给出任何错误.

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

1.) 我用大写字母重命名包名

1.) I renamed package name with capital letters

2.) 然后我在 java 文件中导入了适当的 R.(就我而言,它是 AnantApps.Moodlytics.R).(我们可以通过 eclipse 的查找/替换功能轻松地用新的 R 替换旧的 R)

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)

就是这样.

主要问题是您需要为此安装 Ubuntu Linux 操作系统.

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

这篇关于Android解析错误安装错误:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED(因为包名中的大写字母)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:00