resource android:attr/lStar not found
With the most recent version 0.8.0 of flutter_compass, I get the following error when I try to build an Android release bundle:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_compass:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/__w/***ate/***ate/build/flutter_compass/intermediates/merged_res/release/values/values.xml:194: AAPT: error: resource android:attr/lStar not found.
My environment:
[✓] Flutter (Channel master, 3.24.0-1.0.pre.281, on Ubuntu 22.04.4 LTS 6.5.0-1024-azure, locale en_US)
• Flutter version 3.24.0-1.0.pre.281 on channel master at /usr/local/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f2c1c72d19 (33 minutes ago), 2024-07-25 15:31:14 -0400
• Engine revision 74785a771a
• Dart version 3.6.0 (build 3.6.0-81.0.dev)
• DevTools version 2.37.1
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Platform android-29, build-tools 28.0.3
• Java version OpenJDK Runtime Environment (build 17.0.11+9-Ubuntu-122.04.1)
i also have this
Has anybody found a solution?
increase compilesdk to34 in flutter_compass
Add this in the pubspec.yaml :
dependency_overrides:
flutter_compass:
git: https://github.com/PikPakPik/flutter_compass.git
Would you be open to creating a pull request from your fork to this repository, @PikPakPik? I'm hopeful that @hemanthrajv would accept the fix to resolve this issue.
@PikPakPik you are awesome! Thanks a lot, this one also works for me!
Would you be open to creating a pull request from your fork to this repository, @PikPakPik? I'm hopeful that @hemanthrajv would accept the fix to resolve this issue.
Its done https://github.com/hemanthrajv/flutter_compass/pull/113
@PikPakPik you are awesome! Thanks a lot, this one also works for me!
The package is quite out of date. A manual solution is to go to
/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/android/build.gradle and update the compileSdkVersion to 34.
I also updated minSdkVersion to 21, but I don't think it is necessary.