我在build.grade中收到以下错误消息,用于行编译'com.google.android.gms:play-services-gcm:9.4.0'。
All com.google.android.gms libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 9.4.0, 9.2.1. Examples include com.google.android.gms:play-services-basement:9.4.0 and com.google.android.gms:play-services-ads:9.2.1
我的应用build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "net.myApp"
minSdkVersion 14
targetSdkVersion 21
// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':facebookSDK')
compile 'com.jpardogo.materialtabstrip:library:1.1.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'joda-time:joda-time:2.1'
compile 'com.google.android.gms:play-services-gcm:9.4.0'
compile 'com.android.support:multidex:1.0.1'
compile files('libs/twitter4j-core-4.0.2.jar')
android {
useLibrary 'org.apache.http.legacy'
}
}
项目级gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
}
}
allprojects {
repositories {
jcenter()
}
}
你能告诉我如何解决这个问题吗?