gpt4 book ai didi

android - 为什么import com.google.android.gms.plus 无法解决?

转载 作者:太空宇宙 更新时间:2023-11-03 12:49:28 24 4
gpt4 key购买 nike

我正在尝试将 Google 登录集成到我的应用程序中,但导入 com.google.android.gms.plus 表示符号 plus 不能得到解决,为什么?是不是我用的版本问题?s

这是我的应用程序:

apply plugin: 'com.android.application'


android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.example.hadi.do2get"
minSdkVersion 14
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'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.google.android.gms:play-services-auth:8.4.0'
}

apply plugin: 'com.google.gms.google-services'

这是我的项目gradle:

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-alpha3'
classpath 'com.google.gms:google-services:2.0.0-alpha3'


}
}

allprojects {
repositories {
jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

我试过很多教程,但没有一个有效。 Google 自己的教程也给我错误。

最佳答案

尝试做

'com.google.android.gms:play-services-plus:8.4.0'

关于android - 为什么import com.google.android.gms.plus 无法解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34712292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com