android:attr/lStar not found.
I get this error when i am building my app. the version is flutter_charset_detector: ^3.1.0
Task failed with an exception.
What went wrong:
Execution failed for task ':flutter_charset_detector_android:verifyReleaseResources'.
A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:/Users/stw/AndroidStudioProjects/audio_book/build/flutter_charset_detector_android/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.
Can you provide a minimal reproduction?
Googling around for your error text, it seems to be related to compileSdkVersion and targetSdkVersion. What are your values for these?
Did this fix the problem for you? https://github.com/sotowang/flutter_charset_detector/commit/8146af3349282b6fe9f15b0be63067931283885f
Same error: After upgrade to the latest Flutter SDK 3.24.0
When build APK i got:
Check https://pub.dev/packages/charset_converter/changelog
with new version 2.2.1: "Fix missing lStar resource for Android with Flutter 3.24 (thanks to moffatman)"
Fixed my project editing, build.gradle file in this way, adding "subprojects {..." This force all packages to be compiled with 1.8 and sdk 34
If somene need this is the full file build,gradle (in Android directory) https://pastebin.com/2AQ3rcgR
this is the settings.gradle file https://pastebin.com/iUYL1DvQ
this is the build.gradle (in android/app) https://pastebin.com/udBd3UBE
It works perfecly now. With latest flutter version available. 3.24.1 :)
This should be addressed in flutter_charset_detector_android 3.0.0 / flutter_charset_detector 4.0.0.
For me the problem is solved. You can close the issue.