Android 13 安装应用报错:The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

Android12及以下能运行的程序,现在在Android13系统上面运行,结果安装的时候提示:The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED。

解决方案:

在AndroidManifest.xml需要添加android:exported,android:exported是Android13才要求的,于是在application节点下面的activity节点和receiver节点中都添加一个android:exported="true",再重新编译运行就可以了。

猜你喜欢

转载自blog.csdn.net/baidu_24743861/article/details/133177184