android studio在安装apk时报下面的错误:
The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER
Installation failed due to: ‘null’
修改AndroidManifest.xml中的provider的authorities属性,修改包名为本项目的包名:
android:authorities=“com.example.my.fileprovider”
我原来的AndroidManifest.xml中的provider的authorities属性为:
android:authorities=“com.td.xh.fileprovider”
由于我的设备上另一个项目使用的包名为:com.td.xh,新项目中再次使用的时候忘记改包名,使两个项目AndroidManifest.xml中的provider的authorities属性中的包名一样造成冲突,导致app安装失败。
参考链接:
https://blog.csdn.net/ab0902cd/article/details/101428932