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

[BUG] AAPT: error: resource android:attr/lStar not found. #369

Open
sonuPrasas010 opened this issue May 13, 2024 · 6 comments
Open

[BUG] AAPT: error: resource android:attr/lStar not found. #369

sonuPrasas010 opened this issue May 13, 2024 · 6 comments

Comments

@sonuPrasas010
Copy link

  • What went wrong:
    Execution failed for task ':background_fetch:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/home/sonu/projects/flutter/H-ATTENDANCE/build/background_fetch/intermediates/merged_res/release/values/values.xml:2520: AAPT: error: resource android:attr/lStar not found.
This above is full bug report

@Z6P0
Copy link

Z6P0 commented May 19, 2024

Same here. It stopped working since latest Flutter upgrade. Works in debug mode but not in release.

@christocracy
Copy link
Member

Post both your gradle files.

nobody is specifying what version of the plug-in they’re using.

@Z6P0
Copy link

Z6P0 commented May 19, 2024

build.gradle:

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "${project(':background_fetch').projectDir}/libs" }
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
    project.evaluationDependsOn(':app')
}

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

Using latest plugin version and latest Flutter version.

@christocracy
Copy link
Member

First-of-all, the maven repo jcenter() has been deprecated since 2021.

second, you’ve not fully implemented the Android setup instructions linked in the readme (the ext vars).

I suggest you generate a fresh hello-world app and compare the changes in the default build.gradle with those in your own app.

you’ve failed to properly upgrade your app with the latest requirement of the latest flutter SDK. That’s why you have problems.

@waqaseusopht
Copy link

I am getting same issue
[BUG] AAPT: error: resource android:attr/lStar not found.
This my bulid.gradle file

allprojects {
repositories {
google()
mavenCentral()
maven { url "${project(':background_fetch').projectDir}/libs" }
}
}

rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

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

@christocracy
Copy link
Member

christocracy commented May 23, 2024

See my comment above: #369 (comment)

you did not fully implement the Setup Instructions (ext vars). Go back and review the Setup Instructions. Yes, they are important.

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

4 participants