Android 程序类型已存在:com.google.gdata.client.Query$CategoryFilter
我一直在实现GOOGLE CONTACT API v3(以下是链接)() 我已经按照文档的要求,将所有支持的必需库添加到我的应用程序中,所有依赖项错误都已从我的代码中消失 但是当我尝试运行/构建时,它显示了这个错误 程序类型已存在:com.google.gdata.client.Query$CategoryFilter 消息{kind=ERROR,text=Program type已经存在:com.google.gdata.client.Query$CategoryFilter,sources=[未知源文件],tool name=Optional.of(D8)} 我尝试过谷歌搜索,但并没有找到确切的错误解决方案,但我注意到,对于这类问题的大多数修复方法是升级/降级构建版本 所以,我是在api 28的基础上构建的,所以我降级到了27.1.1,但同样的错误 这就是我的身材。格雷德尔的样子Android 程序类型已存在:com.google.gdata.client.Query$CategoryFilter,android,google-contacts-api,mobile-development,Android,Google Contacts Api,Mobile Development,我一直在实现GOOGLE CONTACT API v3(以下是链接)() 我已经按照文档的要求,将所有支持的必需库添加到我的应用程序中,所有依赖项错误都已从我的代码中消失 但是当我尝试运行/构建时,它显示了这个错误 程序类型已存在:com.google.gdata.client.Query$CategoryFilter 消息{kind=ERROR,text=Program type已经存在:com.google.gdata.client.Query$CategoryFilter,sources=
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.murtaza.contactsync"
minSdkVersion 15
targetSdkVersion 27
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(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
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 files('libs/gdata-core-1.0.jar')
implementation files('libs/gdata-client-1.0.jar')
implementation files('libs/gdata-contacts-3.0.jar')
implementation files('libs/guava-11.0.2.jar')
}
这些都是进口货
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.google.gdata.client.*;
import com.google.gdata.client.contacts.*;
import com.google.gdata.data.*;
import com.google.gdata.data.contacts.*;
import com.google.gdata.data.extensions.*;
import com.google.gdata.util.*;
import java.io.IOException;
import java.net.URL;
请指导我在哪里和我做错了什么,或者如何解决这个问题,以便我可以实现谷歌联系api v3
我为此使用了确切的文档化代码
请帮帮我
GoogleContactAPI被贬低了,所以我用Pople来代替浪费时间
API,可替换为Contact API,其工作方式就像一个符咒
Google People API链接:
人物API链接教程:
Github链接的示例代码:
尝试更新SDK构建系统。此外,本文的一个建议是,使用构建项目所用的API级别检查应用程序设置中的编译版本。谢谢,但我知道Contact API已贬值,现在改用People Contact API及其工作模式