android studio Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

本文分享了在使用Android Studio开发应用程序过程中遇到的应用安装失败问题及其解决方案。作者尝试了多种方法,包括清理项目、检查包名大小写、调整MIUI系统设置等,最终发现问题是由于配置文件中taskAffinity属性设置不当导致。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


First,when i found this problem when i ran my application with Android Studio.



Then,i clicked "OK".But i failed  in installing my application .

So i tried to solve the problem in five ways 

1.

First  i uninstalled the application on my phone , delete the apk in my computer and  click build- clean project in Android Studio , and ran the project again .And there's no use .

2.

then i searched that on the Internet .And i found this 

https://stackoverflow.com/questions/26721951/install-parse-failed-manifest-malformed

So,the first person in it said that it is because the package name cannot have capital letters.

But my package name is 

package="doge.healthcare"

So,it does'nt work .

3. Another one said that it maybe the prolem of MIUI system, so i disable the function as he said and roboot my phone , no thing changed .

4. And  another one said that it  worked after change this in Android Studio .But it doesn't work .....



5.Okay , at last i find the problem 

    android:taskAffinity="String"
it should be changed by 
    android:taskAffinity=".string"
Okay......So careless...

    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值