2015-03-19 36 views
0

我的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.+' 
} 

回答

相關問題