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

Error: android :app:minifyReleaseWithR8 - :stripe_android:compileReleaseJavaWithJavacFAILED #1914

Open
AbdallahR99 opened this issue Sep 7, 2024 · 1 comment
Labels
needs triage Needs triage

Comments

@AbdallahR99
Copy link

Just upgraded flutter and created new projected then added flutter_strip then build
Check the full details about the error here: https://scans.gradle.com/s/l2qy6flpvngj6

Could not resolve all files for configuration ':stripe_android:androidJdkImage'.

Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
Execution failed for JdkImageTransform: E:\Code\Android\Sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Java\jdk-21\bin\jlink.exe with arguments {--module-path C:\Users\abdal.gradle\caches\transforms-3\d198cb3b2ce4714b7204a315a3949a05\transformed\output\temp\jmod --add-modules java.base --output C:\Users\abdal.gradle\caches\transforms-3\d198cb3b2ce4714b7204a315a3949a05\transformed\output\jdkImage --disable-plugin system-modules}
> Error while executing process C:\Program Files\Java\jdk-21\bin\jlink.exe with arguments {--module-path C:\Users\abdal.gradle\caches\transforms-3\d198cb3b2ce4714b7204a315a3949a05\transformed\output\temp\jmod --add-modules java.base --output C:\Users\abdal.gradle\caches\transforms-3\d198cb3b2ce4714b7204a315a3949a05\transformed\output\jdkImage --disable-plugin system-modules}
> Process 'command 'C:\Program Files\Java\jdk-21\bin\jlink.exe'' finished with non-zero exit value 1

flutter doctor -v
[✓] Flutter (Channel stable, 3.24.2, on Microsoft Windows [Version 10.0.22621.4112], locale en-US)
• Flutter version 3.24.2 on channel stable at C:\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4cf269e36d (4 days ago), 2024-09-03 14:30:00 -0700
• Engine revision a6bd3f1de1
• Dart version 3.5.2
• DevTools version 2.37.2

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

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at E:\Code\Android\Sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• 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 Build Tools 2019 16.11.38)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
• Visual Studio Build Tools 2019 version 16.11.35026.282
• Windows 10 SDK version 10.0.22621.0

[✓] Android Studio (version 2023.2)
• Android Studio at E:\Apps\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.11+0--11852314)

[✓] Android Studio (version 2024.1)
• 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.11+0--11852314)

[✓] VS Code (version 1.93.0)
• VS Code at C:\Users\abdal\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.96.0

[✓] Connected device (4 available)
• SM S908E (mobile) • R5CTA0NMW7D • android-arm64 • Android 14 (API 34)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.4112]
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.114
• Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.67

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

@AbdallahR99 AbdallahR99 added the needs triage Needs triage label Sep 7, 2024
@PollyGlot
Copy link

I have the same error in my CircleCI build. I haven't found any solution yet. I am on Flutter 3.22.3 and SDK 34.

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

No branches or pull requests

2 participants