flutter_map_location_marker icon indicating copy to clipboard operation
flutter_map_location_marker copied to clipboard

Execution failed for task ':flutter_compass:verifyReleaseResources'.

Open iArshKaushal opened this issue 1 year ago • 2 comments

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?

iArshKaushal avatar Aug 28 '24 05:08 iArshKaushal

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.

domhel avatar Aug 30 '24 20:08 domhel

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 : https://github.com/hemanthrajv/flutter_compass/pull/113

PikPakPik avatar Sep 18 '24 08:09 PikPakPik

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.

tlserver avatar Oct 10 '24 01:10 tlserver

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Nov 09 '24 10:11 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Nov 16 '24 10:11 github-actions[bot]