问题
I am creating a new plugin for flutter, which requires
import com.google.android.gms.auth.api.Auth;
cannot resolve the above
i have tried many things to implement the library, but no success. i have attached the screenshot also Gradle file
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'
}
来源:https://stackoverflow.com/questions/54109678/flutter-plugin-android-dependency-cannot-resolve