2015-12-14 17 views
1

我得到這個錯誤:不會對我的應用程序的任何供應商的錯誤INSTALL_FAILED_CONFLICTING_PROVIDER

INSTALL_FAILED_CONFLICTING_PROVIDER - multiple apps using same authority provider name

但我不會對我的應用程序的任何供應商,然後我注意到,最後AndroidManifest.xml有以下提供:

<provider 
     android:name="com.google.android.gms.measurement.AppMeasurementContentProvider" 
     android:authorities="com.google.android.gms.measurement.google_measurement_service" 
     android:exported="false" /> 

這似乎是最新的Google Play服務庫上的analytics issue

回答

2

的解決方法是在你的build.gradle添加applicationId設置:

defaultConfig { 
    applicationId "your.package.name" 
} 
0

首先,你在上面看到的錯誤消息,當您想在同一臺設備上安裝相同的應用程序實例僅發生。

flavors { 
    prod { 
    applicationId "your.package.name.prod" 
    } 
    qa { 
    applicationId "your.package.name.qa" 
    } 
} 

從錯誤消息中,您可以清楚地識別出由於AndroidManifest.xml文件中提供者標記而發生的問題。

Solution: 1. Identify which provider tag is causing the issue. 2. Most probably the issue could be android:authroties field. 3. Extend the same provider in your AndroidManifest.xml and add tools:merge="${applicationId}.some.string" field

基本上你應該有一個唯一供應商名稱:在所有應用程序中的APK(Android的authroties)。

相關問題