flutter_sound icon indicating copy to clipboard operation
flutter_sound copied to clipboard

AAPT: error: resource android:attr/lStar not found

Open tan-yaka opened this issue 6 months ago • 1 comments

If you are getting the same build error as me after upgrading to Flutter 3.24:

Execution failed for task ':flutter_sound:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:<Path to app>/build/flutter_sound/intermediates/merged_res/release/values/values.xml:2536: AAPT: error: resource android:attr/lStar not found.

I had to edit <...>/.pub-cache/hosted/pub.dev/flutter_sound-9.10.5/android/build.gradle and change compileSdkVersion 30 to compileSdkVersion 34 to match the value in my app gradle config.

tan-yaka avatar Aug 17 '24 08:08 tan-yaka