Android无法解析符号PlusDomains

时间:2018-07-31 02:09:24

标签: android google-api google-play-services google-plus

我正在关注Google+ Domains API OAuth教程here,但是在导入PlusDomains时遇到了问题。我有

implementation 'com.google.android.gms:play-services-plus:15.0.1'

在build.gradle中,但是Android Studio告诉我没有要导入的内容,并要求我创建该类。我有最新的Android SDK。我的build.gradle如下:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "something.edu.androidoauth"
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:28.0.0-beta01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.google.android.gms:play-services-plus:15.0.1'
    implementation 'com.google.android.gms:play-services-auth:15.0.1'
    implementation 'com.google.api-client:google-api-client-android:1.22.0'
}

我不知道还能尝试什么。任何帮助表示赞赏。

1 个答案:

答案 0 :(得分:0)

证明正确的依存关系是

compile 'com.google.apis:google-api-services-plusDomains:v1-rev457-1.23.0'

我不太确定com.google.android.gms:play-services-plus:15.0.1的用途是什么。