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. #134

Open
cunha-hudson opened this issue Aug 29, 2024 · 8 comments
Open

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

cunha-hudson opened this issue Aug 29, 2024 · 8 comments

Comments

@cunha-hudson
Copy link

when i try build apk i receive this error:
FAILURE: Build failed with an exception.

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

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:C:\Users\Hudson Cunha\Documents\projetos\wss-app-porto-sem-parar\build\background_locator_2\intermediates\merged_res\release\values\values.xml:3664: AAPT: error: resource android:attr/lStar not found.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Somebody can i help me?
flutter version 3.24.0 ,
compileSdkVersion = 34
targetSdkVersion = 34
appCompatVersion = "1.7.0"
kotlin_version = "2.0.20"

@darul9061
Copy link

Yes this issue persists.

@DmitriySimonov
Copy link

DmitriySimonov commented Sep 2, 2024

same problem

* What went wrong:
Execution failed for task ':background_locator_2:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/home/dmitriysi/repo/dropcat/build/background_locator_2/intermediates/merged_res/release/values/values.xml:3664: AAPT: error: resource android:attr/lStar not found.

@TechBoyy6
Copy link

TechBoyy6 commented Oct 9, 2024

hey @cunha-hudson have you found any fix/hack, not able to build and proceed

@cunha-hudson
Copy link
Author

@TechBoyy6 no, but I realized that the error occurs because the flutter's latest version is incompatible, try use Flutter 3.22.3

@DmitriySimonov
Copy link

Is there any solution to use this library and latest version of flutter?

@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
+        }
+    }
}

@DmitriySimonov
Copy link

DmitriySimonov commented Nov 11, 2024

it didn't help

Running Gradle task 'assembleRelease'...
e: ...pub-cache/hosted/pub.dev/background_locator_2-2.0.6/android/src/main/kotlin/yukams/app/background_locator_2/provider/LocationParserUtil.kt:21:20 Return type mismatch: expected 'java.util.HashMap<kotlin.Any, kotlin.Any>', actual 'java.util.HashMap<kotlin.String, it(kotlin.Comparable<*>? & java.io.Serializable?)>'.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':background_locator_2:compileReleaseKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
Compilation error. See log for more details

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

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
+        }
+    }
}

@53huzefa-zeenwala
Copy link

Facing Same Issue, Found any Solution?

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

6 participants