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

Facing the issue in new version of android studio (Android Studio Ladybug | 2024.2.1 Patch 1) #7725

Open
Prafulpatnecha opened this issue Oct 19, 2024 · 2 comments

Comments

@Prafulpatnecha
Copy link

Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
github.com/flutter/flutter.

Steps to Reproduce

Please tell us what you were doing and what went wrong

Version info

Please paste the output of running flutter doctor -v here (available from the command
line or from Tools > Flutter > Flutter Doctor). It will provide the version of the
Flutter framework as well as of the IntelliJ plugin.


Packages are not working in the new version of Android Studio and the app is not running in emulator and other device. It was working properly in the old version of Android Studio but in new version https://pub.dev/ (package ) he is not working


Launching lib/main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
3 warnings
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

FAILURE: Build failed with an exception.

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

Could not resolve all files for configuration ':path_provider_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: /home/prafulpatnecha/Android/Sdk/platforms/android-34/core-for-system-modules.jar.
> Error while executing process /usr/local/android-studio/jbr/bin/jlink with arguments {--module-path /home/prafulpatnecha/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/transformed/output/temp/jmod --add-modules java.base --output /home/prafulpatnecha/.gradle/caches/transforms-3/4a46fc89ed5f9adfe3afebf74eb8bfeb/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 5s
Error: Gradle task assembleDebug failed with exit code 1

@Prafulpatnecha Prafulpatnecha closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2024
@JorgeLeao26
Copy link

I have the exact same error

@Icosa2050
Copy link

I regularly encounter such issues. Often solved it for me, opening the android folder (File→Open..→android) as a separate project. Probably not necessary: I regularly update to newer Android Gradle plugin version, when recommended in that view.
Then using the project structure dialog, but only for the “app”, did set the SDK to 34 in my case and the tool's entry to the fitting version 34.0.0, Source comp rests in 1.8. Did not touch the other modules like path_provider_android. Then positioned the cursor on app in project view. Did Go to Build→Make Module 'android.app'. I played around with the errors until it build successfully.

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

3 participants