skip to Main Content

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ‘:printing:verifyReleaseResources’.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR: /Users/mac/Documents/FlutterDev/flutter_projects/ledgerBook/build/printing/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.

2

Answers


  1. Chosen as BEST ANSWER

    dependencies: printing: 5.13.2

    flutter clean

    flutter build apk --release


  2. go to android/ build.gradle
    then replace

    subprojects {
        project.evaluationDependsOn(":app")
    }
    

    with

    subprojects {
        afterEvaluate {
            project ->
                if (project.plugins.hasPlugin("com.android.application") || project.plugins.hasPlugin("com.android.library")) {
                    project.android {
                        compileSdkVersion 34
                    }
                }
        }
    }
    
    
    subprojects {
        project.buildDir = "${rootProject.buildDir}/${project.name}"
        project.evaluationDependsOn(":app")
    }
    

    then save and build "flutter build apk"

    for reference visit https://youtu.be/YQAw5EBI1DU?feature=shared

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search