hemanthrajv / flutter_compass

MIT License
102 stars 188 forks source link

resource android:attr/lStar not found #112

Open LGro opened 3 months ago

LGro commented 3 months ago

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 commented 3 months ago

i also have this

Anzlc commented 3 months ago

Has anybody found a solution?

iulian0512 commented 3 months ago

increase compilesdk to34 in flutter_compass

PikPakPik commented 3 months ago

Add this in the pubspec.yaml :

dependency_overrides:
  flutter_compass:
    git: https://github.com/PikPakPik/flutter_compass.git
LGro commented 2 months ago

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 commented 2 months ago

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

PikPakPik commented 2 months ago

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

ameenbadri7 commented 2 months ago

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

SacadM commented 1 month ago

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.