【发布时间】:2015-05-04 20:45:28
【问题描述】:
我更新了我的 Android SDK 和 PlayServices 库。现在似乎没有任何效果。
导入 com.google.android.*;不存在,我在 Gradle 文件中添加了“编译”行。
有人经历过吗?我该如何解决这个问题?
编辑
apply plugin: 'com.android.library'
android {
compileSdkVersion 21
buildToolsVersion '22.0.1'
defaultConfig {
minSdkVersion 14
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.1.1'
compile 'com.google.code.gson:gson:2.3'
compile 'org.roboguice:roboguice:3.0.1'
compile 'com.google.android.gms:play-services:7.3.0'
}
这是一个模块的 Gradle 文件。
【问题讨论】:
-
你遇到了什么错误?
-
你能发布你的 build.gradle 中的行吗?
标签: android android-studio google-play-services android-gradle-plugin