加入依赖以后报错 Manifest merger failed with multiple errors, see logs
dicallc opened this issue · comments
Error:Execution failed for task ':im:processDebugManifest'.
Manifest merger failed with multiple errors, see logs
是否是因为有多个provider
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.xiaoxin.im"
android:exported="false"
android:grantUriPermissions="true">
怎么解决呢
这个是因为lib里定义了一个authorities是android:authorities="${applicationId}.provider"
你可以把你定义的删掉就可以了。不过最好建议你源码引入,
@martin90s Error:Execution failed for task ':app:processArmeabi-v7aDebugManifest'.
Manifest merger failed with multiple errors, see logs 如何解决这个报错问题。
按照以下添加到你的app清单文件即可
<application
tools:replace="theme">
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.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"
tools:replace="android:resource" />
</provider>