2015-11-07 65 views
2

我想只有谷歌分析和廣告添加到我的應用程序,但是當我嘗試添加:機器人工作室谷歌播放服務8.3的問題

compile 'com.google.android.gms:play-services-analytics:8.3.0'

compile 'com.google.android.gms:play-services-ads:8.3.0'

我得到這個錯誤:

Error:Execution failed for task ':app:processDebugResources'. Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0

我見過很多關於此的帖子,大多數人建議添加完整的庫(編譯'com.google.android.gms:play-services:8.3.0'),

但這不是一個解決方案,因爲很多權限播放服務請求現在美國。

在此先感謝。

回答

2

在您的項目(而不是應用程序)build.gradle中的依賴關係中,將您的依賴關係更新爲類路徑'com.google.gms:google-services:1.5.0-beta2'

相關問題