C/C++教程

Installation did not succeed. The application could not be installed:

本文主要是介绍Installation did not succeed. The application could not be installed:,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

最近升级到API 31时,写demo发现安装应用报错:

The application could not be installed: 
INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

List of apks:
[0] 'D:\AndroidStudioWorkSpace\mukewang\Test\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: 'null' 

原因是:使用较低版本的 AndroidStudio,Android 12上行为已经发生变更,必须显示声明 android:exported 属性。
以 Android 12为目标平台的应用—更安全的组件导出

这篇关于Installation did not succeed. The application could not be installed:的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!