【发布时间】:2018-10-04 12:29:16
【问题描述】:
在我将 constraintLayout 版本从 1.1.2 -> 2.0.0-alpha2 升级后
我收到了这个错误
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
/Users/x/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0-rc01.aar/
d5741c4d219b7f0eeb18436ff6f46f63/res/values/values.xml:1104:5-1169:25: AAPT: error: duplicate value for resource 'attr/mode' with config ''.
/Users/x/.gradle/caches/transforms-1/files-1.1/appcompat-v7-28.0.0-rc01.aar/
d5741c4d219b7f0eeb18436ff6f46f63/res/values/values.xml:1104:5-1169:25: AAPT: error: resource previously defined here.
appCompat 版本为 v7:28.0.0-rc01
此问题可在 AS 3.3 canary 3 & 3.2 stable & 3.1.4 & 3.0.1 版本上重现
我该如何解决这个问题?
【问题讨论】:
标签: gradle android-constraintlayout android-studio-3.2 android-studio-3.1.4 android-studio-3.3