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

error: resource android:attr/lStar not found. #115

Open
zoenie123 opened this issue Aug 29, 2024 · 1 comment
Open

error: resource android:attr/lStar not found. #115

zoenie123 opened this issue Aug 29, 2024 · 1 comment

Comments

@zoenie123
Copy link

zoenie123 commented Aug 29, 2024

Since upgrade from flutter version 3.19.6 to a higher version I cannot compile flutter_libserialport anymore for Android.

`FAILURE: Build failed with an exception.

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

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:Q:\flutter_projects\flutter_bloc_example\build\flutter_libserialport\intermediates\merged_res\release\values\values.xml:194: 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.

BUILD FAILED in 1m 23s
Running Gradle task 'assembleRelease'... 84.1s

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then update the │
│ version number of the plugin with id "org.jetbrains.kotlin.android" in the plugins block of │
│ Q:\flutter_projects\flutter_bloc_example\android\settings.gradle. │
│ │
│ Alternatively (if your project was created before Flutter 3.19), update │
│ Q:\flutter_projects\flutter_bloc_example\android\build.gradle │
│ ext.kotlin_version = '' │
└────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
`

Does the package need an update to support the latest gradle version?

@BaurFilip
Copy link

BaurFilip commented Sep 3, 2024

Hi @zoenie123, try the branch from the PR #109 Add namespace. Works for me :-)

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

3 participants
@zoenie123 @BaurFilip and others