【发布时间】:2014-10-02 03:54:06
【问题描述】:
我在我的项目中使用带有 Gradle 的 Android Studio。我不得不将它从 eclipse 转换为 android studio。但是我得到了这个错误
Failed to find: com.google.android.gms:play-services:5.0.77
这是我的 build.gradle 文件。
apply plugin: 'com.android.application'
android {
compileSdkVersion 18
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.org.appname"
minSdkVersion 14
targetSdkVersion 17
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
// Google Play Services
compile 'com.google.android.gms:play-services:5.0.77'
compile 'com.android.support:support-v4:20.0.0'
compile 'org.jsoup:jsoup:1.7.3'
compile 'io.segment.analytics.android:google-analytics:1.3.1'
compile 'com.squareup.picasso:picasso:2.3.3'
}
怎么了?我已经安装了 Google 存储库,就像在其他帖子中阅读一样。但它不起作用。 谢谢
【问题讨论】:
标签: java android gradle android-studio build.gradle