一、创建新的Android Studio Kotlin项目,直接运行后报错:
AAPT2 process unexpectedly exit. Error output:
详情如下:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform artifact 'appcompat.aar (androidx.appcompat:appcompat:1.1.0)' to match attributes {artifactType=android-compiled-dependencies-resources}.
> Execution failed for AarResourcesCompilerTransform: C:\Users\20012101\.gradle\caches\transforms-2\files-2.1\ac4199d79d4b0412da579f23fc82cb0f\appcompat-1.1.0.
> AAP