我的Android项目出现问题。由于此错误,无法构建它:错误:无法找到符号类LocationClient。我已经红色,你需要使用较低版本的谷歌播放服务,如'com.google.android.gms:play-services:5. +'。Android错误:无法找到符号类LocationClient
但是,当我使用那个我得到另一个错误:错误:属性“主题”已被定义。当我使用Google搜索时,它说我需要使用更高版本的谷歌播放服务,如'com.google.android.gms:play-services:6. +'。
所以我需要使用版本5. +和6. +,但这是不可能的。有没有解决这个问题的方法?
这是我的脚本的gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:21'
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "app_id"
minSdkVersion 19
targetSdkVersion 21
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
//tried different versions of the librarys, without success
compile 'com.android.support:support-v4:22.0.0'
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.google.android.gms:play-services:6.5.87'
compile 'com.google.android.gms:play-services:5.+'
}