appCompact-v7自动更新至28.0.0之后,项目开始报错,没法运行了
2018-03-08 15:04
891 查看
C:\Users\LRP1989\.gradle\caches\transforms-1\files-1.1\appcompat-v7-28.0.0-alpha1.aar\90f3d5231b775a0fcb68f975b9b3c155\res\values\values.xml
Error:(252, 5) error: duplicate value for resource 'attr/cornerRadius' with config ''.
Error:(252, 5) error: resource previously defined here.
Error:(252, 5) error: duplicate value for resource 'attr/strokeColor' with config ''.
Error:(252, 5) error: resource previously defined here.
Error:(252, 5) error: duplicate value for resource 'attr/strokeWidth' with config ''.
Error:(252, 5) error: resource previously defined here.
D:\LRPWorkSpace\yst-android\yst-android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Error:(949) duplicate value for resource 'attr/cornerRadius' with config ''.
Error:(867) resource previously defined here.
Error:(949) duplicate value for resource 'attr/strokeColor' with config ''.
Error:(868) resource previously defined here.
Error:(949) duplicate value for resource 'attr/strokeWidth' with config ''.
Error:(868) resource previously defined here.
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
是因为我的studio的是3.0的,而实际android plugin版本是3.0.1(合并同事代码后所致),改回3.0.0之后就ok了
Error:(252, 5) error: duplicate value for resource 'attr/cornerRadius' with config ''.
Error:(252, 5) error: resource previously defined here.
Error:(252, 5) error: duplicate value for resource 'attr/strokeColor' with config ''.
Error:(252, 5) error: resource previously defined here.
Error:(252, 5) error: duplicate value for resource 'attr/strokeWidth' with config ''.
Error:(252, 5) error: resource previously defined here.
D:\LRPWorkSpace\yst-android\yst-android\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Error:(949) duplicate value for resource 'attr/cornerRadius' with config ''.
Error:(867) resource previously defined here.
Error:(949) duplicate value for resource 'attr/strokeColor' with config ''.
Error:(868) resource previously defined here.
Error:(949) duplicate value for resource 'attr/strokeWidth' with config ''.
Error:(868) resource previously defined here.
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
是因为我的studio的是3.0的,而实际android plugin版本是3.0.1(合并同事代码后所致),改回3.0.0之后就ok了
相关文章推荐
- 关于eclipse 在创建一个新项目时自动出现的appcompat v7如何解决
- 异常-创建项目时会自动创建一个Appcompat_v7项目,而且报错
- 关于android开发环境中sdk和adt更新到22.6之后多了appcompat_v7
- 关于android开发环境中sdk和adt更新到22.6之后多了appcompat_v7
- 新建android项目时Eclipse自动生成appcompat_v7
- [QuickX]xcode运行Quick-cocos2d-x项目时自动更新lua资源文件
- 关于android开发环境中sdk和adt更新到22.6之后多了appcompat_v7
- android创建项目自动生成appcompat_v7问题
- 创建一个Android项目就会自动创建一个appcompat_v7
- android SDK更新 创建项目出现appcompat_v7
- Maven 问题,一启动Eclipse之后,Maven更新自动开始,解决。updating maven dependencies
- Eclipse:创建项目自动产生appcompat_v7
- EasyDemo*adt创建新的项目同时自动创建出appcompat_v7项目?
- 新建android项目时Eclipse自动生成appcompat_v7
- [QuickX]xcode运行Quick-cocos2d-x项目时自动更新lua资源文件
- 安卓项目R,java文件不能自动更新,clean之后,R.java消失
- 关于android开发环境中sdk和adt更新到22.6之后多了appcompat_v7
- 更新了Xcode8之后运行空白的项目之后控制台打印一堆东西, 屏蔽方法
- 【入门】创建新项目-系统自动创建了appcompat_v7 res资源属性报错
- 关于android开发环境中sdk和adt更新到22.6之后多了appcompat_v7