问题描述
它完美地工作。由于出现此错误,我现在无法查看pdf但我无法在手机中安装其他版本:
Installation did not succeed. The application could not be installed: INSTALL_FAILED_CONFLICTING_PROVIDER Installation failed due to: 'null' Retry
推荐代码:
应用程序级别的build.gradle文件
defaultConfig {
applicationId "com.abc.xyz"
minSdkVersion 21
targetSdkVersion 29
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"}
flavorDimensions "version"
productFlavors {
appdev {
dimension "version"
applicationIdSuffix ".dev"
versionCode buildVersionCodeDev()
versionName version_dev
}
appqa {
dimension "version"
applicationIdSuffix ".qa"
versionCode buildVersionCodeQA()
versionName version_qa
}
apppro {
dimension "version"
applicationIdSuffix ".pro"
versionCode buildVersionCodePro()
versionName version_pro
}
}
AndroidManifest.xml
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="com.freshdesk.helpdesk.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>
Note:-
我点击了此链接,但仍然面临着同样的问题,即使我从AndroidManifest.xml中删除了提供程序标签,但仍然遇到相同的错误,因此即使在同一设备上也无法安装其他功能。 >
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)