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

cordova-filechooser conflicts with cordova-plugin-camera #24

Open
ryaa opened this issue Jan 30, 2017 · 0 comments
Open

cordova-filechooser conflicts with cordova-plugin-camera #24

ryaa opened this issue Jan 30, 2017 · 0 comments

Comments

@ryaa
Copy link

ryaa commented Jan 30, 2017

It seems that cordova-filechooser conflicts with cordova-plugin-camera. Adding both plugins to ionic/cordova project breaks the build. The error as below

Element provider#android.support.v4.content.FileProvider at AndroidManifest.xml:15:9-17:20 duplicated with element declared at AndroidManifest.xml:12:9-14:20

It seems that this is caused by the below in AndroidManifest.xml

    <provider android:authorities="${applicationId}.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
        <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
    </provider>
    <provider android:authorities="com.mobile.boss811.opener.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
        <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/opener_paths" />
    </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

1 participant