Hi, after upgrading to flutter 3.22 i am getting this error white running on jenkins with windows, my local machine(macos) does not have this trouble:
Running Gradle task 'assemblePayerRelease'...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':flutter_logs:compileReleaseJavaWithJavac'.
error: invalid source release: 17
here are the
below flutter docs:
flutter doctor -v
[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [versao 10.0.14393], locale pt-BR)
• Flutter version 3.22.0 on channel stable at C:\Users\Administrator\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (13 days ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at C:\Users\Administrator\AppData\Local\Android\Sdk
• Platform android-34, build-tools 32.0.0
• ANDROID_HOME = C:\Users\Administrator\Documents\android-sdk
• ANDROID_SDK_ROOT = C:\Users\Administrator\Documents\android-sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.6)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31829.152
• Windows 10 SDK version 10.0.19041.0
Hi, after upgrading to flutter 3.22 i am getting this error white running on jenkins with windows, my local machine(macos) does not have this trouble:
Running Gradle task 'assemblePayerRelease'...
FAILURE: Build failed with an exception.
here are the
below flutter docs:
flutter doctor -v [√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [versao 10.0.14393], locale pt-BR) • Flutter version 3.22.0 on channel stable at C:\Users\Administrator\Documents\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5dcb86f68f (13 days ago), 2024-05-09 07:39:20 -0500 • Engine revision f6344b75dc • Dart version 3.4.0 • DevTools version 2.34.3
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0) • Android SDK at C:\Users\Administrator\AppData\Local\Android\Sdk • Platform android-34, build-tools 32.0.0 • ANDROID_HOME = C:\Users\Administrator\Documents\android-sdk • ANDROID_SDK_ROOT = C:\Users\Administrator\Documents\android-sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted.
[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2019 16.11.6) • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community • Visual Studio Community 2019 version 16.11.31829.152 • Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2020.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 11.0.10+0-b96-7249189)
[√] VS Code (version 1.84.1) • VS Code at C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (2 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [versao 10.0.14393] • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.210
[√] Network resources • All expected network resources are available.
• No issues found!
my installed javas: javac 17.0.11 java 17.0.11 2024-04-16 LTS Java(TM) SE Runtime Environment (build 17.0.11+7-LTS-207) Java HotSpot(TM) 64-Bit Server VM (build 17.0.11+7-LTS-207, mixed mode, sharing)
does anybody got any idea whats is going on?