Android Studio 3.2。摇篮4.6
在我的 gradle.properties 中:
android.useAndroidX=true
android.enableJetifier=true
我想迁移到AndroidX。 因此,在菜单中选择
Refactor -> Migrate to AndroidX
Studio将我的许多资源替换为androidx...
真好
但是当我构建项目时出现错误:
:app:mergeDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1614: error: duplicate value for resource 'attr/mode' with config ''.
D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:1614: error: resource previously defined here.
Command: C:\Users\Alexei\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\1140ed5d6b762801720aa38b75493b72\aapt2-3.2.1-4818971-windows\aapt2.exe compile --legacy \
-o \
D:\dev\MyProject\\app\build\intermediates\res\merged\debug \
D:\dev\MyProject\\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Output: C:\Users\Alexei\.gradle\caches\transforms-1\files-1.1\jetified-swipe-reveal-layout-1.4.1.aar\9897ef13e78d1b3a157ca2f1633442ed\res\values\values.xml:3:5-414: AAPT: error: duplicate value for resource 'attr/mode' with config ''.