首页 > 其他分享 >android studio,不管调试还是release,在android12上都报错。

android studio,不管调试还是release,在android12上都报错。

时间:2023-02-20 11:14:15浏览次数:51  
标签:android12 app apk 报错 release studio android

List of apks:
[0] '/Users/xxxx/Documents/Android/Test/app/build/outputs/apk/debug/test.apk'
Installation failed due to: 'Failed to commit install session 206588333 with command package install-commit 206588333. Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl206588333.tmp/base.apk (at Binary XML file line #140): com.xyzlf.share.library.ShareHandlerActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
Retry
Failed to launch an application on all devices

 

 

上面的意思是android12需要加上android:exported 

然后就可以了。

 

详细说明,可以参考以下:

https://www.jianshu.com/p/c0472c7ed286

标签:android12,app,apk,报错,release,studio,android
From: https://www.cnblogs.com/jiduoduo/p/17136605.html

相关文章