flutter_packages icon indicating copy to clipboard operation
flutter_packages copied to clipboard

[ BUG ] : * What went wrong: Execution failed for task ':cached_video_player:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action > Android resource linking failed ERROR:C:\salin_salita\salinsalita\build\cached_video_player\intermediates\merged_res\release\values\values.xml:141: AAPT: error: resource android:attr/lStar not found.

Open voltohmmeter opened this issue 9 months ago • 6 comments

While running flutter build apk I continuously get that error.

voltohmmeter avatar May 16 '24 10:05 voltohmmeter

Me too. I had to revert to building an appbundle instead of an apk to get around it, as I don't face this issue when running flutter build appbundle unlike flutter build apk

Abdullah104 avatar May 28 '24 02:05 Abdullah104

I'm also getting an error when building, is there a solution yet?

6Yolo6 avatar May 28 '24 03:05 6Yolo6

same error

chauhanpriyanshu001 avatar May 29 '24 14:05 chauhanpriyanshu001

Consider using the following snippet to override the cached_video_player dependency with the Gradle bump fix from a forked repo. This should fix the APK build issues.

In your pubspec.yaml add the following:

dependency_overrides:
    appinio_video_player:
      git:
        url: https://github.com/JahnChoi/appinio_flutter_packages
        path: packages/appinio_video_player
        ref: feature/switch-cached-video-player-dep

JahnChoi avatar Jul 10 '24 00:07 JahnChoi

Just created a PR to resolve this issue for the main package as well: #291

JahnChoi avatar Jul 10 '24 06:07 JahnChoi

i solved my problem by adding this : dependency_overrides: appinio_video_player: git: url: https://github.com/JahnChoi/appinio_flutter_packages path: packages/appinio_video_player ref: feature/switch-cached-video-player-dep

thank you for you. appinio_video_player: ^1.3.0 logger: ^1.4.0 #geolocator: ^10.1.0 flutter_localizations: sdk: flutter dependency_overrides: appinio_video_player: git: url: https://github.com/JahnChoi/appinio_flutter_packages path: packages/appinio_video_player ref: feature/switch-cached-video-player-dep

HSNDevlopment avatar Jul 25 '24 14:07 HSNDevlopment

how to solved this error in flutter ,if i created the flutter apk

  • What went wrong: Execution failed for task ':cached_video_player:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed ERROR:D:\codesteam\truckstop\build\cached_video_player\intermediates\merged_res\release\values\values.xml:203: AAPT: error: resource android:attr/lStar not found.

Qariziaullahkhan avatar Feb 19 '25 07:02 Qariziaullahkhan