Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APK build failed #320

Open
MrCoder75 opened this issue Sep 25, 2024 · 4 comments
Open

APK build failed #320

MrCoder75 opened this issue Sep 25, 2024 · 4 comments

Comments

@MrCoder75
Copy link

When i try to build apk it gives the following error

Execution failed for task ':image_gallery_saver:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR: ../build/image_gallery_saver/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.

 The issue i think is with the plugin because when i remove it and then try to build apk it builds sucessfully.
@eansharma
Copy link

The code project lavel build.gradel file is added. my case resolves issue

allprojects {
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}
}

rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
afterEvaluate {
android {
compileSdkVersion 34
}
}
}
subprojects {
project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
delete rootProject.buildDir
}

@austincparker
Copy link

The code project lavel build.gradel file is added. my case resolves issue

allprojects { ext.kotlin_version = '1.8.0' repositories { google() mavenCentral() } }

rootProject.buildDir = "../build" subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" afterEvaluate { android { compileSdkVersion 34 } } } subprojects { project.evaluationDependsOn(":app") }

tasks.register("clean", Delete) { delete rootProject.buildDir }

Thanks for this - I have a lot of packages installed so this is a more targeted workaround, but yours helped me get there.

subprojects {
    // TODO: Remove this when image_gallery_saver is updated to support Flutter 3.24.3
    if (project.name == "image_gallery_saver") {
        afterEvaluate {
            android {
                compileSdkVersion 34
            }
        }
    }
}

@knottx
Copy link

knottx commented Oct 4, 2024

Try this #295

@shahbazgondalnew
Copy link

it also works for me, i just add the following lines
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
afterEvaluate {
android {
compileSdkVersion 34
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants