Flutter插件Android依赖性无法解决

时间:2019-01-09 12:00:50

标签: android ios flutter flutter-plugin

我正在为flutter创建一个新插件,这需要

import com.google.android.gms.auth.api.Auth;

无法解决以上问题

我已经尝试了很多方法来实现该库,但是没有成功。我也附上了截图 Gradle文件

buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'
    }
}

rootProject.allprojects {
    repositories {
        google()
        jcenter()
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}




apply plugin: 'com.android.library'

android {
    compileSdkVersion 27

    defaultConfig {
        minSdkVersion 16
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    lintOptions {
        disable 'InvalidPackage'
    }
    dependencies{
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.google.android.gms:play-services-auth:16.0.1'
    }
}

dependencies{
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.gms:play-services-auth:16.0.1'
}

enter image description here enter image description here

0 个答案:

没有答案