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

AAPT: error: resource android:attr/lStar not found. #976

Open
maomaoshu opened this issue Oct 22, 2024 · 3 comments
Open

AAPT: error: resource android:attr/lStar not found. #976

maomaoshu opened this issue Oct 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@maomaoshu
Copy link

Running these commands results in an error: flutter clean; flutter pub get; flutter build apk --release.
My project reports this error: AAPT: error: resource android:attr/lStar not found.
image
My project configuration
image

The versions of flutter_downloader, namely flutter_downloader-1.11.8 and flutter_downloader-1.11.7, all report this bug.

@maomaoshu maomaoshu added the bug Something isn't working label Oct 22, 2024
@maomaoshu
Copy link
Author

How can I solve this program problem? Thank you.

@Alvish0407
Copy link

try adding the code block highlighted below to the android/build.gradle file in your project directory.

rootProject.buildDir = "../build"
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
+    afterEvaluate {
+        android {
+            compileSdkVersion 34
+        }
+    }
}

@maomaoshu
Copy link
Author

好的,我试试,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants