这是我得到的错误。我尝试了一切,我使用的是android studio 1.3.1版本:
Error:Could not find com.google.android.gms:play-services-gcm:8.4.0.
Required by:
StockHawk-master:app:unspecified
<a href="searchInBuildFiles">Search in build.gradle files</a>
当我点击上面的链接时,它会找到服务,但是gradle会一次又一次地显示错误。
这是build.gradle代码:
apply plugin: 'com.android.application'
apply plugin: 'android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example..stockhawk"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro'
}
}
}
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
apt 'net.simonvt.schematic:schematic-compiler:0.6.3'
compile 'net.simonvt.schematic:schematic:0.6.3'
compile 'com.melnykov:floatingactionbutton:1.2.0'
compile 'com.android.support:design:23.1.1'
compile 'com.lsjwzh:materialloadingprogressbar:0.5.6-RELEASE'
compile 'com.github.blackfizz:eazegraph:1.2.2@aar'
compile 'com.nineoldandroids:library:2.4.0'
compile('com.github.afollestad.material-dialogs:core:0.8.5.7@aar') {
transitive = true
}
}
apply plugin: 'com.google.gms.google-services'