我正在尝试使用一些示例来使用Google Drive REST API v3,但是当我从here的代码中进行复制时,我不断收到“无法解析符号AsyncLoadTasks”错误(减去一些界面内容)我不想使用)。如何使异步线正常工作?
如果有帮助,下面是我的build.gradle文件:
apply plugin: 'com.android.application'
repositories {
mavenCentral()
mavenLocal() // For google-play-services is not on Maven Central.
}
dependencies {
implementation 'com.google.apis:google-api-services-tasks:v1-rev48-1.23.0' exclude module: 'httpclient'
implementation 'com.google.api-client:google-api-client-android:1.23.0' exclude module: 'httpclient'
implementation 'com.google.http-client:google-http-client-gson:1.23.0' exclude module: 'httpclient'
implementation 'com.google.android.gms:play-services-identity:7.3.0'
}
android {
compileSdkVersion 26
defaultConfig {
minSdkVersion 11
targetSdkVersion 26
}
buildTypes {
release {
minifyEnabled true
proguardFile 'proguard-google-api-client.txt'
proguardFile getDefaultProguardFile('proguard-android.txt')
}
}
}