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

I can't debug my app #1703

Closed
RDeveLabs opened this issue Feb 10, 2025 · 4 comments
Closed

I can't debug my app #1703

RDeveLabs opened this issue Feb 10, 2025 · 4 comments

Comments

@RDeveLabs
Copy link

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_plugin_android_lifecycle:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':flutter_plugin_android_lifecycle: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: C:\Users\dikar\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\dikar.gradle\caches\8.10\transforms\fa05b5145fdcce8eb043548dbf277ffa-e4a50ba9-5c08-4411-845f-890b6d306058\transformed\output\temp\jmod --add-modules java.base --output C:\Users\dikar.gradle\caches\8.10\transforms\fa05b5145fdcce8eb043548dbf277ffa-e4a50ba9-5c08-4411-845f-890b6d306058\transformed\output\jdkImage --disable-plugin system-modules}

  • 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 19s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

@navaronbracke
Copy link
Collaborator

I'm going to need the full Gradle error to debug this.

@navaronbracke
Copy link
Collaborator

Can you delete your pubspec.lock and do flutter pub get again?

@RDeveLabs
Copy link
Author

Can you delete your pubspec.lock and do flutter pub get again?

Okay, I'll try it.

@RDeveLabs
Copy link
Author

Can you delete your pubspec.lock and do flutter pub get again?

Eeyoooww...it worked just like I wanted🥹

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

2 participants