简体   繁体   中英

Android resource compilation failed error:

After migrating my project to androidx and fixing all imports and layout files, i get the following compilation error

    java.util.concurrent.ExecutionException: 
com.android.builder.internal.aapt.v2.Aapt2Exception:

    Android resource compilation failed error: .

I have tried to run code inspection and fixed any lint related issues but still getting the same error. Here is the link to build scan https://scans.gradle.com/s/y7b5v37gl2yvs

This may be happening because of some referenced String Resources or another type of resources is not imported in the project. Please check if you have used two different string files.

I think you should need to upgrade this one also

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
       classpath 'com.android.tools.build:gradle:3.3.1'
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM