install failed conflicting provider

SagarPanwalaSagarPanwala USMember ✭✭✭

Hi,

I'm getting below error

Deployment failed

error ADB0000: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.demo1--WOMAUjKkHh5by1vc2H9VQ==: Can't install because provider name dollar_openBracket_applicationId_closeBracket (in package com.demo1) is already used by com.demo]
error ADB0000: at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (System.String output, System.String packageName) [0x00159] in <0d831a1b4b174377b160593e0bd2dd6d>:0
error ADB0000: at Mono.AndroidTools.AndroidDevice+<>c__DisplayClass95_0.b__0 (System.Threading.Tasks.Task1[TResult] t) [0x0001c] in <0d831a1b4b174377b160593e0bd2dd6d>:0 error ADB0000: at System.Threading.Tasks.ContinuationTaskFromResultTask1[TAntecedentResult].InnerInvoke () [0x00024] in <45380ace5c8444179d49367ad00e8e0c>:0
error ADB0000: at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono-private/2018-06/external/bockbuild/builds/mono-x64/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2344
error ADB0010: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.demo1--WOMAUjKkHh5by1vc2H9VQ==: Can't install because provider name dollar_openBracket_applicationId_closeBracket (in package com.demo1) is already used by com.demo]
error ADB0010: at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess (System.String output, System.String packageName) [0x00159] in <0d831a1b4b174377b160593e0bd2dd6d>:0
error ADB0010: at Mono.AndroidTools.AndroidDevice+<>c__DisplayClass95_0.b__0 (System.Threading.Tasks.Task1[TResult] t) [0x0001c] in <0d831a1b4b174377b160593e0bd2dd6d>:0 error ADB0010: at System.Threading.Tasks.ContinuationTaskFromResultTask1[TAntecedentResult].InnerInvoke () [0x00024] in <45380ace5c8444179d49367ad00e8e0c>:0
error ADB0010: at System.Threading.Tasks.Task.Execute () [0x00000] in /Users/builder/jenkins/workspace/build-package-osx-mono-private/2018-06/external/bockbuild/builds/mono-x64/external/corert/src/System.Private.CoreLib/src/System/Threading/Tasks/Task.cs:2344

here are the packages I'm using

Answers

  • JarvanJarvan Member, Xamarin Team Xamurai

    The authority of provider in android:authorities must be unique. Check the authority in AndroidMainfest and try to change the authorities property.

  • SagarPanwalaSagarPanwala USMember ✭✭✭
    edited April 22

    here it is
    <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.demo1.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" /> </provider>

    it is unique, Xamarin always throws error with dollar applicationId

  • SagarPanwalaSagarPanwala USMember ✭✭✭

    here it is


  • JarvanJarvan Member, Xamarin Team Xamurai

    Would you mind sharing a basic demo? It'll be helpful to reproduce the issue and find a solution.

  • SagarPanwalaSagarPanwala USMember ✭✭✭

    @yelinzh : For demo, I think it's sufficient with two sample project with Provider.

Sign In or Register to comment.