flutter_compass icon indicating copy to clipboard operation
flutter_compass copied to clipboard

resource android:attr/lStar not found

Open LGro opened this issue 1 year ago • 9 comments

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)

LGro avatar Jul 27 '24 11:07 LGro

i also have this

iulian0512 avatar Aug 07 '24 14:08 iulian0512

Has anybody found a solution?

Anzlc avatar Aug 08 '24 08:08 Anzlc

increase compilesdk to34 in flutter_compass

iulian0512 avatar Aug 08 '24 11:08 iulian0512

Add this in the pubspec.yaml :

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

PikPakPik avatar Aug 18 '24 20:08 PikPakPik

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.

LGro avatar Aug 21 '24 14:08 LGro

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

michael-developer-1384 avatar Aug 21 '24 15:08 michael-developer-1384

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 avatar Aug 21 '24 15:08 PikPakPik

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

ameenbadri7 avatar Sep 02 '24 20:09 ameenbadri7

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.

SacadM avatar Sep 26 '24 13:09 SacadM