因此,当我从Android Studio运行androidDependencies命令时,我得到以下LONG输出。所有错误是什么意思?它仍然可以成功构建,我应该对错误做些什么,如果是这样,我该如何清理它们呢?
androidDependencies输出
Information:Gradle tasks [androidDependencies]
:app:androidDependencies
debug
+--- LOCAL: notification-hubs-0.4.jar
+--- LOCAL: android-viewbadger.jar
+--- LOCAL: android-maps-extensions.jar
+--- com.google.android.gms:play-services:8.4.0
| +--- com.google.android.gms:play-services-ads:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-analytics:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appindexing:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appinvite:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appstate:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-auth:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-cast:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.android.support:mediarouter-v7:23.0.0
Error:+--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.android.support:appcompat-v7:23.0.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-drive:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-fitness:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-location:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-games:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-drive:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-gcm:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-measurement:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-identity:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-location:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-measurement:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-nearby:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-panorama:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-plus:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-safetynet:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-vision:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-wallet:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:+--- com.google.android.gms:play-services-identity:8.4.0
Error:| \--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| \--- com.google.android.gms:play-services-wearable:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.google.android.gms:play-services-gcm:8.4.0
| +--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| \--- com.google.android.gms:play-services-measurement:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.android.support:appcompat-v7:23.0.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.microsoft.azure:azure-notifications-handler:1.0.1
+--- com.google.android.gms:play-services-ads:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.google.android.gms:play-services-auth:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
\--- me.leolin:ShortcutBadger:1.1.5
debugAndroidTest
No dependencies
debugUnitTest
No dependencies
release
+--- LOCAL: notification-hubs-0.4.jar
+--- LOCAL: android-viewbadger.jar
+--- LOCAL: android-maps-extensions.jar
+--- com.google.android.gms:play-services:8.4.0
| +--- com.google.android.gms:play-services-ads:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-analytics:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appindexing:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appinvite:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-appstate:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-auth:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-cast:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.android.support:mediarouter-v7:23.0.0
Error:+--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.android.support:appcompat-v7:23.0.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-drive:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-fitness:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-location:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-games:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-drive:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-gcm:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-measurement:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-identity:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-location:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-measurement:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-nearby:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-panorama:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-plus:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-safetynet:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-vision:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| +--- com.google.android.gms:play-services-wallet:8.4.0
Error:+--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:+--- com.google.android.gms:play-services-identity:8.4.0
Error:| \--- com.google.android.gms:play-services-base:8.4.0
Error:| \--- com.google.android.gms:play-services-basement:8.4.0
Error:| \--- com.android.support:support-v4:23.0.0
Error:| \--- LOCAL: internal_impl-23.0.0.jar
Error:\--- com.google.android.gms:play-services-maps:8.4.0
Error:\--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| \--- com.google.android.gms:play-services-wearable:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.google.android.gms:play-services-gcm:8.4.0
| +--- com.google.android.gms:play-services-base:8.4.0
Error:\--- com.google.android.gms:play-services-basement:8.4.0
Error:\--- com.android.support:support-v4:23.0.0
Error:\--- LOCAL: internal_impl-23.0.0.jar
| \--- com.google.android.gms:play-services-measurement:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.android.support:appcompat-v7:23.0.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.microsoft.azure:azure-notifications-handler:1.0.1
+--- com.google.android.gms:play-services-ads:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
+--- com.google.android.gms:play-services-auth:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.0.0
| \--- LOCAL: internal_impl-23.0.0.jar
\--- me.leolin:ShortcutBadger:1.1.5
releaseUnitTest
No dependencies
Information:BUILD SUCCESSFUL
Information:Total time: 4.936 secs
Information:256 errors
Information:0 warnings
Information:See complete output in console
libs文件夹内容
android-maps-extensions.jar
android-viewbadger.jar
notification-hubs-0.4.jar
app build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.MYAPPID.android"
minSdkVersion 11
targetSdkVersion 23
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-project.txt'
}
}
dexOptions {
preDexLibraries = false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.microsoft.azure:azure-notifications-handler:1.0.1@aar'
compile 'com.google.android.gms:play-services-ads:8.4.0'
compile 'com.google.android.gms:play-services-auth:8.4.0'
compile 'me.leolin:ShortcutBadger:1.1.5@aar'
}
repositories {
maven {
url "http://dl.bintray.com/microsoftazuremobile/SDK"
}
mavenCentral()
}
这可能与我的预测设置有关吗?
答案 0 :(得分:1)
我会预览一些你可以尝试的解决方案
1-检查你的proguard文件并添加此
# this belong gms
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
2-但您需要更新到最新版本
compile 'com.google.android.gms:play-services:9.0.2'
3-并在依赖阻止后添加插件
apply plugin: 'com.google.gms.google-services'
4-终于在项目模块
中的build.gradle文件中classpath 'com.google.gms:google-services:3.0.0'
答案 1 :(得分:1)
这更多是评论(但评论太短)
我继续做了一个新项目并复制了你的应用build.gradle,我从./gradlew androidDependencies
得到了以下内容,所以我相信它与你的静态库和你的依赖关系有关(我显然可以'加载你拥有的相同.jar(以及你如何编辑它们))
我的建议是像我一样制作一个项目,然后一次慢慢添加一个jar,看看哪个导致了错误。 (没有任何实际依赖任何代码的代码。)这可能有助于您更好地识别“确切”的根问题。
编辑:我也注意到我的输出与你的输出略有不同......因为我的输出有com.android.support:support-v4:23.2.0
与你的com.android.support:support-v4:23.0.0
对比,所以我想知道在SDK管理器中更新你的东西是否可以解决这个问题。
./gradlew androidDependencies
:app:androidDependencies
debug
+--- com.google.android.gms:play-services:8.4.0
| +--- com.google.android.gms:play-services-ads:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-analytics:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appindexing:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appinvite:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appstate:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-auth:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-cast:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.android.support:mediarouter-v7:23.0.0
| | +--- LOCAL: internal_impl-23.0.0.jar
| | \--- com.android.support:appcompat-v7:23.2.0
| | +--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | +--- com.android.support:animated-vector-drawable:23.2.0
| | | \--- com.android.support:support-vector-drawable:23.2.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.android.support:support-vector-drawable:23.2.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-fitness:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-games:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-gcm:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-identity:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-nearby:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-panorama:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-plus:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-safetynet:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-vision:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-wallet:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | +--- com.google.android.gms:play-services-identity:8.4.0
| | | \--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.google.android.gms:play-services-wearable:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.google.android.gms:play-services-gcm:8.4.0
| +--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.google.android.gms:play-services-measurement:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.android.support:appcompat-v7:23.2.0
| +--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.android.support:animated-vector-drawable:23.2.0
| | \--- com.android.support:support-vector-drawable:23.2.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.android.support:support-vector-drawable:23.2.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.microsoft.azure:azure-notifications-handler:1.0.1
+--- com.google.android.gms:play-services-ads:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.google.android.gms:play-services-auth:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
\--- me.leolin:ShortcutBadger:1.1.5
debugAndroidTest
No dependencies
debugUnitTest
No dependencies
release
+--- com.google.android.gms:play-services:8.4.0
| +--- com.google.android.gms:play-services-ads:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-analytics:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appindexing:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appinvite:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-appstate:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-auth:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-cast:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.android.support:mediarouter-v7:23.0.0
| | +--- LOCAL: internal_impl-23.0.0.jar
| | \--- com.android.support:appcompat-v7:23.2.0
| | +--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | +--- com.android.support:animated-vector-drawable:23.2.0
| | | \--- com.android.support:support-vector-drawable:23.2.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.android.support:support-vector-drawable:23.2.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-fitness:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-games:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-drive:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-gcm:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-identity:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-location:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-measurement:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-nearby:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-panorama:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-plus:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-safetynet:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-vision:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.google.android.gms:play-services-wallet:8.4.0
| | +--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | +--- com.google.android.gms:play-services-identity:8.4.0
| | | \--- com.google.android.gms:play-services-base:8.4.0
| | | \--- com.google.android.gms:play-services-basement:8.4.0
| | | \--- com.android.support:support-v4:23.2.0
| | | \--- LOCAL: internal_impl-23.2.0.jar
| | \--- com.google.android.gms:play-services-maps:8.4.0
| | \--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.google.android.gms:play-services-wearable:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.google.android.gms:play-services-gcm:8.4.0
| +--- com.google.android.gms:play-services-base:8.4.0
| | \--- com.google.android.gms:play-services-basement:8.4.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.google.android.gms:play-services-measurement:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.android.support:appcompat-v7:23.2.0
| +--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| +--- com.android.support:animated-vector-drawable:23.2.0
| | \--- com.android.support:support-vector-drawable:23.2.0
| | \--- com.android.support:support-v4:23.2.0
| | \--- LOCAL: internal_impl-23.2.0.jar
| \--- com.android.support:support-vector-drawable:23.2.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.microsoft.azure:azure-notifications-handler:1.0.1
+--- com.google.android.gms:play-services-ads:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
+--- com.google.android.gms:play-services-auth:8.4.0
| \--- com.google.android.gms:play-services-base:8.4.0
| \--- com.google.android.gms:play-services-basement:8.4.0
| \--- com.android.support:support-v4:23.2.0
| \--- LOCAL: internal_impl-23.2.0.jar
\--- me.leolin:ShortcutBadger:1.1.5
答案 2 :(得分:1)
试试这个:
对于GCM,您不需要在依赖项中添加此文件(编译#com; google.android.gms:play-services-gcm:8.4.0')。
如果你使用latest studio gcm sample,这个(' com.google.android.gms:播放服务:8.4.0')就足够了GCM。
并尝试删除除此之外的所有gms播放服务广告,auth等(' com.google.android.gms:播放服务:8.4.0')。
com.google.android.gms:播放服务:8.4.0足以支持所有gms播放服务相关的库。