当我将核心-ktx依赖项添加到我的应用程序的build.gradle文件中时,我的gradle构建在错误消息AAPT2 error: check logs for details中失败了,它进一步告诉我们当我将android.enableAAPT2=false添加到我的项目属性中时,由于不推荐该选项,构建会失败,因此我想避免这种情况。这两个resource not found errors的错误描述如下:
错误:没有找到资源
错误消息: AAPT: error: resourceandroid:attr/fontVariationSettings not found.AAPT: error: resourceandroid:attr/ttcIndex not found.
FAILURE: Build failed with an exception.Fail
并深入到日志中:
error: resourceandroid:attr/dialogCornerRadius not found.error: resourceandroid:attr/dialogCornerRadius not found.error: resourceandroid:attr/f