Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加入依赖以后报错 Manifest merger failed with multiple errors, see logs #18

Open
dicallc opened this issue Jul 6, 2017 · 3 comments

Comments

@dicallc
Copy link

dicallc commented Jul 6, 2017

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">

怎么解决呢

@martin90s
Copy link
Owner

这个是因为lib里定义了一个authorities是android:authorities="${applicationId}.provider"
你可以把你定义的删掉就可以了。不过最好建议你源码引入,

@xmy1231
Copy link

xmy1231 commented Aug 8, 2017

@martin90s Error:Execution failed for task ':app:processArmeabi-v7aDebugManifest'.

Manifest merger failed with multiple errors, see logs 如何解决这个报错问题。

@guaipobabys
Copy link

按照以下添加到你的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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants