|
[插件开发]
2个模块同时添加fileprovider引起的问题
[复制链接]
如题 2个模块都添加了fileprovider 冲突了 模块里 该如何解决呢
编译报的错误
- 2021-02-05 02:37:52
- no manifest.xml, ignore
- /uzmap/temp/TeMSQpnNsl6NC3K/AStudioProject/app/src/main/AndroidManifest.xml:74:75-109 Error:
- Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/file_paths) from AndroidManifest.xml:74:75-109
- is also present at [:zyTencentAd-release:] AndroidManifest.xml:32:17-54 value=(@xml/gdt_file_path).
- Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml:74:13-111 to override.
- FAILURE: Build failed with an exception.
- * What went wrong:
- Execution failed for task ':app:processReleaseManifest'.
- > Manifest merger failed : Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/file_paths) from AndroidManifest.xml:74:75-109
- is also present at [:zyTencentAd-release:] AndroidManifest.xml:32:17-54 value=(@xml/gdt_file_path).
- Suggestion: add 'tools:replace="android:resource"' to <meta-data> element at AndroidManifest.xml:74:13-111 to override.
- * Try:
- Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
- * Get more help at https://help**.**
- BUILD FAILED in 10s
复制代码
我自各的配置 应该如何 修改
- <provider
- android:name="android.support.v4.content.FileProvider"
- android:authorities="${applicationId}.fileprovider"
- android:exported="false"
- android:grantUriPermissions="true">
- <meta-data
- android:name="android.support.FILE_PROVIDER_PATHS"
- android:resource="@xml/gdt_file_path" />
- </provider>
复制代码
|
|