Fixed CI #589
Open
Fixed CI #589
Cirrus CI / android-platform_tests CHANNEL:stable PLUGIN_SHARDING:--shardIndex 2 --shardCount 4
failed
Jun 14, 2025 in 4m 1s
Task Summary
Instruction build failed in 02:38
Details
✅ 00:04 clone
✅ 01:12 upgrade_flutter
✅ 00:03 tool_setup
❌ 02:38 build
+ universal_file 1.0.0
+ universal_platform 1.1.0
+ uuid 4.5.1
+ vector_math 2.1.4 (2.2.0 available)
+ vm_service 15.0.0 (15.0.2 available)
+ web 1.1.1
+ webdriver 3.1.0
Changed 52 dependencies!
12 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... 150.1s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────┐
│ [!] Android Gradle plugin requires Java 17 to run. You are currently using Java 11. │
│ │
│ To fix this issue, try updating to the latest Android SDK and Android Studio on: │
│ https://developer.android.com/studio/install │
│ If that does not work, you can set the Java version used by Flutter by │
│ running `flutter config --jdk-dir=“</path/to/jdk>“` │
│ │
│ To check the Java version used by Flutter, run `flutter doctor --verbose` │
└─────────────────────────────────────────────────────────────────────────────────────┘
FAILURE: Build failed with an exception.
* Where:
Build file '/tmp/cirrus-ci-build/packages/pdfx/example/android/app/build.gradle' line: 2
* What went wrong:
An exception occurred applying plugin request [id: 'com.android.application']
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 17 to run. You are currently using Java 11.
Your current JDK is located in /usr/lib/jvm/java-11-openjdk-amd64
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 2m 29s
Gradle task assembleRelease failed with exit code 1
�[90m
[pdfx completed in 2m 35s]�[0m
�[31mThe following packages had errors:�[0m
�[31m pdfx:
pdfx/example (Android)�[0m
�[31mSee above for full details.�[0m
����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Loading