迁移到AndroidX报错Program type already present: androidx.annotation xxx
最近将项目中使用的support库迁移到AndroidX了,其中遇到了几处报错,其中大部分错误在网上都能找到,现在我只把网上搜索不到解决方法的错误分享一下。迁移成功后,运行项目时报错:Program type already present: androidx.annotation xxx,解决方案:在app's build.gradle中添加
configurations {compile.exclude group: 'androidx.annotation', module: 'annotation' } 即可,如下所示:
android {//bla bla bla
}configurations {compile.exclude group: 'androidx.annotation', module: 'annotation'
}dependencies {
// bla bla bla
}
迁移到AndroidX报错Program type already present: androidx.annotation xxx相关推荐
- Android Studio 报Error: Program type already present: **.BuildConfig
从GitHub上检出一个项目,编译的时候报了这个错,网上查说是module的包名跟APP一样,我就修改了module的包名,但是还是报这个错,最后在stackoverflow有个方法是在app的bui ...
- 【我的Android进阶之旅】解决Android项目编译报错: Program type already present : com.xxx.xxxx.BuildConfig
一.错误描述 今天编译项目的时候,出现了一个错误如下所示: AGPBI: {"kind":"error","text":"Prog ...
- SAP WM初阶LQ02报错 - Movement Type 901 for manual transfer orders does not exist -
SAP WM初阶LQ02报错 - Movement Type 901 for manual transfer orders does not exist - SAP WM模块里的事务代码LQ02很有用 ...
- SAP QM 执行事务代码QP01,系统报错 -Material type FOOD is not defined for task list type Q-
SAP QM 执行事务代码QP01,系统报错 -Material type FOOD is not defined for task list type Q- 商品主数据755,物料类型是FOOD,基 ...
- SAP WM自动创建TO后台作业报错 - Processing Type没有维护 - 之对策
SAP WM自动创建TO后台作业报错 - Processing Type没有维护 - 之对策 笔者所在的D项目上,需要设置自动创建TO的后台作业.笔者为程序RLAUTA10定义了变式,然后设置了后台作 ...
- python 报错 AttributeError: type object ‘datetime.datetime‘ has no attribute ‘datetime‘
python报错:type object 'datetime.datetime' has no attribute 'datetime' 描述:在第一个python程序里还未报错,第二个程序完全复制过 ...
- java argument type mismatch_解决mybatisplus插入报错argument type mismatch的问题
今天使用argument type mismatch发现插入的时候报错 java.lang.IllegalArgumentException: argument type mismatch 从错误中看 ...
- GAMIT安装报错:Type mismatch / Rank mismatch
在进行GAMIT10.71安装时,遇到报错: Type mismatch between actual argument at (1) and actual argument at (2)..(省略) ...
- 报错 The type类名 is already defined
解决办法 当定义一个类的时候,可能会报错 The type 类名 is already defined 解决办法 第一种:project–clean将工程文件清理一下 第二种: 看这包中里面是不是有其 ...
最新文章
- Web开发人员为什么越来越懒了?
- unity人物刚体移动_Unity 刚体移动,自方向移动
- 【Python】反转列表 list 的几种方法
- django drf Filter
- Java修炼之道--I/O
- WPF中的事件及冒泡事件和隧道事件(预览事件)的区别
- linux之netstat与lsof
- mysql的事务隔离级别
- HTML5 桌面通知:Notification API
- visual studio2010中几个快捷键的使用
- 【SwitchHosts】安装使用
- matlab不用hist画直方图,matlab可以画直方图
- arduino霍尔编码器蓝牙小车代码
- ps考证分数是用电脑改的吗
- 我来告诉你,一个草根程序员如何进入BAT
- Using Oracle Database 11g Release 2 Result Cache in an Oracle RAC Environment
- 揭秘金庸笔下的假面江湖
- 企业管理软件如何选型?看完后恍然大悟
- 二叉树如何求两个叶节点的最近公共祖先--re
- 计算机组装走线,DIY电脑装机教程 走背线方法图文教程