Error: Program type already present: com.google.gson.FieldAttributes 的解决方法

在app中的build.gradle中加入如下代码,

configurations {
    all*.exclude group: ‘com.google.code.gson‘
    all*.exclude group: ‘com.squareup.okhttp3‘
    all*.exclude group: ‘com.squareup.okio‘
    all*.exclude group: ‘com.android.support‘,module:‘support-v13‘
}

如图

原文地址:https://www.cnblogs.com/sea-stream/p/10596873.html

时间: 2024-11-02 20:48:09

Error: Program type already present: com.google.gson.FieldAttributes 的解决方法的相关文章

Error: Program type already present: okhttp3.Authenticator$1

在app中的build.gradle中加入如下代码, configurations { all*.exclude group: 'com.google.code.gson' all*.exclude group: 'com.squareup.okhttp3' all*.exclude group: 'com.squareup.okio' all*.exclude group: 'com.android.support',module:'support-v13' } 如图 原文地址:https:/

Error:Program type already present: android.arch.lifecycle.LiveData

Apparently, this is intended behavior: com.firebaseui:firebase-ui-firestore:3.1.0 depends on android.arch.lifecycle:extensions:1.0.0-beta1. Switching to version 3.2.2 fixes the issue by using the Lifecycle 1.1 libraries that Support Library 27.1.0 ar

InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法

InnoDB: Operating system error number 87 in a file operation. 错误87的解决方法 140628  8:10:48 [Note] Plugin 'FEDERATED' is disabled.140628  8:10:48 InnoDB: The InnoDB memory heap is disabled140628  8:10:48 InnoDB: Mutexes and rw_locks use Windows interlock

ERROR 1045 (28000): Access denied for user 'root'@'localhost' 的解决方法

系统:Centos 6.5 64位 Mysql:5.1.73 今天想做个数据库测试实验,居然忘记了Mysql数据的密码.于是使用安全模式启用. [[email protected] ~]# service mysqld stop    #先停止数据库 Stopping mysqld:                                           [  OK  ] [[email protected] ~]# mysqld_safe --skip-grant-tables &

error at ::0 can't find referenced pointcut pointCutName 错误解决方法

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public final void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate); nested exception is java.la

google无法访问 2014解决方法详解

方法二 寻找可用IP地址 IP地址一:http://74.125.205.147/ 即可访问谷歌 转:http://www.newasp.net/tech/89292.html 以是我个人实测的:配合 Chrome 浏览器.GoaAgent v3.1.8.SwitchySharp.crx.SwitchyOptions.bak 就可以访问google 而且搜索打开的页面很快. google无法访问 2014解决方法详解,布布扣,bubuko.com

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost'的解决方法

[mysql]ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost'的解决方法 在安装完MySQL并添加环境变量之后 由于在MySQL安装过程中设置了密码,导致直接在cmd中登陆出现了上面问题, 解决方式: 正确的cmd登陆命令应该如下所示(红字部分):之后会提示输入密码 即可进入MySQL C:\users\Laoyu_>mysql -u root -p Enter password: ******(输入你的密码) (图见附件

数据库迁移后报错提示MySQL Error:Can''t find file errno: 13 - Permission denied的解决方法

用户MYSQL数据库迁移后,遇到报错MySQL Error:Can't find file (errno: 13 - Permission denied)使用以下指令重新设置所有者和权限,依然不能解决. [[email protected] ~]# chown 501:501 -R /www/server/data/comdb [[email protected]~]# chmod 666 -R /www/server/data/comdb [[email protected]~]# servi

ERROR: JDWP Unable to get JNI 1.2 environment的解决方法

当执行如下代码时: //从控制台获取输入 InputStream is = System.in; Scanner scanner = new Scanner(is); System.out.println("请输入:"); System.out.println(scanner.nextLine()); 有时会发生如下错误: ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2 J