我已经使用 android studio 添加了登录活动到我的应用程序,但是我遇到了这些错误:
Error:(11, 37) error: cannot find symbol class GooglePlayServicesClient
Error:(13, 35) error: cannot find symbol class PlusClient
Error:(20, 44) error: package GooglePlayServicesClient does not exist
Error:(21, 33) error: package GooglePlayServicesClient does not exist
Error:(35, 13) error: cannot find symbol class PlusClient
Error:(279, 12) error: cannot find symbol class PlusClient
Error:(78, 31) error: package PlusClient does not exist
Error:(160, 65) error: package PlusClient does not exist
Error:(239, 5) error: method does not override or implement a method from a supertype
Error:(249, 5) error: method does not override or implement a method from a supertype
Error:(262, 5) error: method does not override or implement a method from a supertype
我已经在我的 SDK 管理器中安装了 google play 服务,所以我不确定为什么它告诉我该包不存在。
编辑:
摇篮文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.tyler.titanaid"
minSdkVersion 15
targetSdkVersion 22
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.0.0'
compile 'com.google.android.gms:play-services:7.0.0'
}