I got this error "Installation failed due to: 'INSTALL_FAILED_CONFLICTING_PROVIDER"

See original GitHub issue

When I updated library to v3.0.0 I got this error “Installation failed due to: 'INSTALL_FAILED_CONFLICTING_PROVIDER”

this error only show when I have two apps use the same lib in my device.

this is my provider:

<provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.com.vansuita.pickimage.provider"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/picker_provider_paths" />
        </provider>

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jrvansuitacommented, Jun 21, 2022

The error is telling that you provider declared name is “com.vasuita.pickimage.provider” when it really should be “${YourApplicationIdHere}.com.vansuita.pickimage.provider”. Can you redeclare the provider name on you manifest and try again? I recreate your situation, installer 2 apps that your this same lib and both works just fine.

 <provider
            android:name="com.vansuita.pickimage.provider.PickImageFileProvider"
            android:authorities="${applicationId}.com.vansuita.pickimage.provider"
            android:exported="false"
            android:grantUriPermissions="true"
            tools:replace="android:authorities">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/picker_provider_paths" />
        </provider>
0reactions
majedalmoqbelicommented, Jun 21, 2022

Thank you it works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

INSTALL FAILED CONFLICTING PROVIDER - Stack Overflow
Package couldn't be installed in /data/app/com.company.appname-1 com.android.server.pm.PackageManagerException: Can't install because provider name ...
Read more >
Installation fails on Android - CONFLICTING_PROVIDER #750
Installation failed with message INSTALL_FAILED_CONFLICTING_PROVIDER. It is possible that this issue is resolved by uninstalling an existing ...
Read more >
install failed conflicting provider - MSDN - Microsoft
I'm getting below error ... Failure [INSTALLFAILEDCONFLICTINGPROVIDER: Package couldn't be installed ... Can't install because provider name ...
Read more >
INSTALL FAILED CONFLICTING PROVIDER - SyntaxFix
Install shows error in console: INSTALL FAILED CONFLICTING PROVIDER ... I've made a slight variation in the program, but when I install my...
Read more >
How do I Resolve Error Code -13 When Installing an App
Generally, if a provider conflict occurs when you install an app, it is probably because an existing app has the same ContentProvider.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found