vikram25897 / flutter_cached_video_player

BSD 3-Clause "New" or "Revised" License
95 stars 153 forks source link

Not able to generatre Release Build while using cached_video_player #98

Open yamini-chaudhary opened 7 months ago

yamini-chaudhary commented 7 months ago

Execution failed for task ':cached_video_player:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action Android resource linking failed Android resource linking failed ERROR:C:\Users\HP.gradle\caches\transforms-3\87f0e673dc4ee6b514e9d5964fa729a9\transformed\core-1.7.0\res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

  Flutter (Channel stable, 3.19.6, on Microsoft Windows [Version 10.0.22000.2538], locale
en-IN)
• Flutter version 3.19.6 on channel stable at C:\Users\HP\Downloads\flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 54e66469a9 (3 weeks ago), 2024-04-17 13:08:03 -0700
• Engine revision c4cd48e186
• Dart version 3.3.4
• DevTools version 2.31.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users\HP\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.3) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] VS Code (version 1.89.0) • VS Code at C:\Users\HP\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.88.0

[√] Connected device (4 available) • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33)
(emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.2538] • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.63 • Edge (web) • edge • web-javascript • Microsoft Edge 120.0.2210.144

[√] Network resources • All expected network resources are available.

voltohmmeter commented 6 months ago

i got this error also

mgulbazilyas commented 6 months ago

Got this error also. only when generating apk. when generating app bundle that works fine

yamini-chaudhary commented 6 months ago

i got this error also

use this instead https://pub.dev/packages/video_cached_player

yamini-chaudhary commented 6 months ago

Got this error also. only when generating apk. when generating app bundle that works fine

use this instead https://pub.dev/packages/video_cached_player

6Yolo6 commented 6 months ago

FAILURE: Build failed with an exception.

dev-samama commented 6 months ago

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':cached_video_player:verifyReleaseResources' > An error occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action > Android resource linking failed ERROR:E:\GraduationDesign\FlutterEnglishHub\flutter_english_hub\build\cached_video_player\intermediates\merged_res\release\values\values.xml:141: AAPT: error: resource android:attr/lStar not found. I also have this error, but I use appinio_video_player which uses this cache_video_player |-- appinio_video_player 1.3.0 | |-- cached_video_player 2.0.4 | | |-- flutter... | | |-- flutter_test... | | |-- meta... | | |-- video_player_platform_interface... | | '-- video_player_web... | '-- flutter...

Any solution, I looking for one now.

voltohmmeter commented 5 months ago

i got this error also

use this instead https://pub.dev/packages/video_cached_player

does it have the same functionality as appinio?

JahnChoi commented 4 months ago

Consider using the following snippet to override the cached_video_player dependency with the Gradle bump fix branch within this repo. This should fix the APK build issues.

In your pubspec.yaml add the following:

dependency_overrides:
  cached_video_player:
    git:
      url: https://github.com/vikram25897/flutter_cached_video_player
      ref: feature/gradle_version_bump