-
Notifications
You must be signed in to change notification settings - Fork 26.7k
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
video_player - Failure to build instrument test APK (Execution failed for task ':video_player_android:compileDebugJavaWithJavac'.) #148478
Comments
Thanks for the report @TheSuperRealJP
Can you try by running
Instead of It may also be related to the gradle version + java version you are using that you can check and confirm. |
Hi @darshankawar. Thanks for your response. I've tried downgrading to Java 20 and bumped the Gradle version to 8.3 as per this matrix. I'm afraid I still get the same error. I was previously on Java 21 using Gradle 7.6.3.
|
Thanks for the update. I was able to replicate this following the details provided. stable, master flutter doctor -v
|
What package does this bug report belong to?
video_player
What target platforms are you seeing this bug on?
Android
Have you already upgraded your packages?
Yes
Dependency versions
pubspec.lock
Steps to reproduce
flutter pub get
.flutter drive --driver=test_driver/integration_test.dart --target=integration_test/video_player_test.dart
integration tests and confirm successgradlew
commands):6.1.
flutter build apk
SUCCESS6.2.
./gradlew app:assembleAndroidTest
FAILURE6.3.
./gradlew app:assembleDebug -Ptarget="$FCI_BUILD_DIR/integration_test/app_test.dart"
FAILUREExpected results
A release APK and instrumental test APK to be output.
Actual results
Build error with description "Task :video_player_android:compileDebugJavaWithJavac FAILED" for both
./gradlew app:assembleAndroidTest
(6.2) and./gradlew app:assembleDebug -Ptarget="$FCI_BUILD_DIR/integration_test/app_test.dart"
(6.3) commands. Therefore, no instrumental test APK output.Code sample
Code sample
https://github.com/flutter/packages/tree/main/packages/video_player/video_player/example
Screenshots or Videos
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: