android FileProvider 和三方的FileProvider冲突

问题提示:

Attribute provider#android.support.v4.content.FileProvider@authorities value=(com.example.xd.videotest) from AndroidManifest.xml:47:13-59
    is also present at [:ringtonelib-release:] AndroidManifest.xml:35:13-55 value=(net.xxx.app.provider).
    Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml:45:9-53:20 to override.

 

在加入三方.arr后就报这样的问题,搜了很久,发现是三方的FileProvider和我自己的FileProvider冲突了,所以解决办法如下

 解决方案:
android:name="android.support.v4.content.FileProvider"
android:authorities="com.example.xd.videotest"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
android:name="android.support.FILE_PROVIDER_PA

你可能感兴趣的:(android FileProvider 和三方的FileProvider冲突)