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

resource android:attr/lStar not found #112

Open
LGro opened this issue Jul 27, 2024 · 9 comments
Open

resource android:attr/lStar not found #112

LGro opened this issue Jul 27, 2024 · 9 comments

Comments

@LGro
Copy link

LGro commented Jul 27, 2024

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)
@iulian0512
Copy link

i also have this

@Anzlc
Copy link

Anzlc commented Aug 8, 2024

Has anybody found a solution?

@iulian0512
Copy link

increase compilesdk to34 in flutter_compass

@PikPakPik
Copy link
Contributor

Add this in the pubspec.yaml :

dependency_overrides:
  flutter_compass:
    git: https://github.com/PikPakPik/flutter_compass.git

@LGro
Copy link
Author

LGro commented Aug 21, 2024

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.

@michael-developer-1384
Copy link

@PikPakPik you are awesome! Thanks a lot, this one also works for me!

@PikPakPik
Copy link
Contributor

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 #113

@ameenbadri7
Copy link

@PikPakPik you are awesome! Thanks a lot, this one also works for me!

@SacadM
Copy link

SacadM commented Sep 26, 2024

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.

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

7 participants