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

[Question] Resolver fails (java.lang.NoClassDefFoundError) #739

Closed
mehmeteacar opened this issue Mar 5, 2025 · 4 comments
Closed

[Question] Resolver fails (java.lang.NoClassDefFoundError) #739

mehmeteacar opened this issue Mar 5, 2025 · 4 comments
Labels
needs-info Need information for the developer type: question

Comments

@mehmeteacar
Copy link

mehmeteacar commented Mar 5, 2025

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 6000.0.34f1
  • External Dependency Manager version: 1.2.185
  • Source you installed EDM4U: .unitypackage
  • Features in External Dependency Manager in use: Android Resolver, iOS Resolver
  • Plugins SDK in use: Firebase 12.6.0, Admob 9.6.0, GPG 2.0.0
  • Platform you are using the Unity editor on: Windows 11

[REQUIRED] Please describe the question here:

I have installed these plugins (Admob and Firebase) but Android Resolver fails, with an error saying java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7

Goes on like this
Image

I'm using openjdk and gradle installed with unity. What might be the cause?

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@argzdev argzdev removed the new to be triaged label Mar 6, 2025
@argzdev
Copy link
Collaborator

argzdev commented Mar 10, 2025

Hey @mehmeteacar, thanks for reaching out. It could be a caching error. Could you try the provided solution here and see if it changes anything?

  1. Unity > Edit > Preferences > External Tools
  2. Click and click again on each JDK, Android SDK, Android NDK, and Gradle checkbox.

The act of toggling each checkbox resets something within Unity's settings somewhere.

Afterwards, Gradle should function properly.

In case it doesn't, could you please provide an MCVE for us to check this further? Thanks!

@argzdev argzdev added the needs-info Need information for the developer label Mar 10, 2025
@mehmeteacar
Copy link
Author

@argzdev hi, I managed to solve it by editing settingsTemplate.gradle file as mentioned here. Enabled custom gradle settings as well.

@argzdev
Copy link
Collaborator

argzdev commented Mar 12, 2025

That's great to hear you were able to resolve the issue. Thanks for sharing the solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Need information for the developer type: question
Projects
None yet
Development

No branches or pull requests

3 participants