Android studio 无法解析符号GoogleAppClient
在我的应用程序中,我使用LocationManager,现在我想使用FusedLocationServices 我正在使用Android Studio 1.1.0,并在gradle中添加了google play服务库Android studio 无法解析符号GoogleAppClient,android-studio,google-play-services,android-fusedlocation,Android Studio,Google Play Services,Android Fusedlocation,在我的应用程序中,我使用LocationManager,现在我想使用FusedLocationServices 我正在使用Android Studio 1.1.0,并在gradle中添加了google play服务库 dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':pull_to_refresh') compile project(':uil_library') compile
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':pull_to_refresh')
compile project(':uil_library')
compile project(':viewPagerIndicatorLib')
compile files('libs/date4j.jar')
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.support:cardview-v7:21.0.3'
compile 'com.android.support:recyclerview-v7:21.0.3'
compile 'com.google.maps.android:android-maps-utils:0.3.+'
compile 'joda-time:joda-time:2.7'
compile 'com.github.shell-software:fab:1.0.5'
compile 'com.google.android.gms:play-services:6.5.87'
}
但当我定义GoogleAppClient变量时,它会说
无法解析符号“GoogleAppClient”
所以我点击alt+Enter来导入它,但它会显示“将库添加到”google-play-service-6.5.8.7“到类路径”,所以我点击它,当我运行我的应用程序时,它会显示错误
错误:(9,41)错误:包com.google.android.gms.common.api不存在
错误:(23,13)错误:找不到符号类GoogleAppClient
我怎样才能解决这个问题?首先是什么导致了这个问题。我觉得自己很愚蠢:)
这个gradle在我的主应用程序中,但我在库项目中使用了GoogleAppClient,所以我必须将编译'com.google.android.gms:play services:6.5.87'
也添加到我的库中