您的位置:首页 > 移动开发

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了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: