Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to generatre Release Build while using cached_video_player #98

Open
yamini-chaudhary opened this issue May 7, 2024 · 7 comments

Comments

@yamini-chaudhary
Copy link

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
Copy link

i got this error also

@mgulbazilyas
Copy link

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

@yamini-chaudhary
Copy link
Author

i got this error also

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

@yamini-chaudhary
Copy link
Author

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
Copy link

6Yolo6 commented May 28, 2024

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...

@dev-samama
Copy link

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
Copy link

i got this error also

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

does it have the same functionality as appinio?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants