Execution failed for task ':flutter_compass:verifyReleaseResources'.
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
How to resolve to?
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.
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
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.
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.
This issue was closed because it has been stalled for 7 days with no activity.