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

Execution failed for task ':flutter_compass:verifyReleaseResources'. #127

Open
iArshKaushal opened this issue Aug 28, 2024 · 3 comments
Open

Comments

@iArshKaushal
Copy link

Description
Unable to build the project and facing a build failed error while generating apk file due to following exception in Flutter project.

Execution failed for task ':flutter_compass:verifyReleaseResources'
A clear and concise description of what you expected to happen.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
Android resource linking failed
ERROR:C:\Users\username\AndroidStudioProjects\Flutt_all\0 Flut_by_AKK\my_flutter_project\build\flutter_compass\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.

Screenshots

ss1
ss2

How to resolve to?

@domhel
Copy link

domhel commented Aug 30, 2024

Dependency issues are the most annoying :(

You can use my workaround until flutter_compass has updated to the latest Flutter version.
In your pubspec.yaml, use this:

  flutter_map_location_marker:
    git: 
      url: https://github.com/domhel/flutter_map_location_marker.git
      ref: 1c6d946

I have replaced flutter_compass with flutter_compass_v2

Edit: compass v2 also seems to work more reliable. I've had issues where the location marker was sometimes not shown on the map and it seems to be better now.

@PikPakPik
Copy link

Put this in your pubspec.yaml and wait :

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

i do an MR for the flutter_compass error : hemanthrajv/flutter_compass#113

@tlserver
Copy link
Owner

For anyone facing this issue, consider trying v10.0.0-beta.0. In this new version, FMLM has dropped the flutter_compass dependency and now uses flutter_rotation_sensor.

The flutter_rotation_sensor offers two great features: customizable update intervals and coordinate transformation. Additionally, you can use any device heading provider; flutter_rotation_sensor is just the default implementation. Check out the custom stream example to learn how to set it up.

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

5 participants
@tlserver @domhel @PikPakPik @iArshKaushal and others