Skip to content

[Bug] Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated. Could not initialize class org.codehaus.groovy.reflection.ReflectionCache #705

Open
@HassannKhan

Description

@HassannKhan

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 6000.0.15f1
  • External Dependency Manager version: 1.2.182
  • Source you installed EDM4U: .unitypackage of applovin ads (.unitypackage or Unity Package Manager)
  • Features in External Dependency Manager in use: ANDROID RESOLVER (Android Resolver, iOS Resolver, VersionHandler, etc.)
  • Plugins SDK in use: APPLOVIN ADS SDK FOR UNITY (Firebase, Admob, Facebook, etc.)
  • Platform you are using the Unity editor on: WINDOWS (Mac, Windows, or Linux)

[REQUIRED] Please describe the issue here:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.

Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

  • 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 3s

exit code: 1

(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
MAKE AN EMPTY PROJECT using same unity version, Try to add applovin plugin and run ads. Resolver fails.

Please answer the following, if applicable:

What's the issue repro rate? (eg 100%, 1/5 etc)
100%. It sometimes works in a unpredictable way

What happened? How can we make the problem occur?
Just download the same versions, make a project and try to run ads.

If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.

Will do in a while.

Activity

google-oss-bot

google-oss-bot commented on Aug 24, 2024

@google-oss-bot

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

HassannKhan

HassannKhan commented on Aug 24, 2024

@HassannKhan
Author

what information is missing Mr BOT @google-oss-bot

changed the title [-][Bug] [/-] [+][Bug] Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated. Could not initialize class org.codehaus.groovy.reflection.ReflectionCache[/+] on Aug 25, 2024
self-assigned this
on Sep 6, 2024
argzdev

argzdev commented on Sep 12, 2024

@argzdev
Collaborator

Hey @HassannKhan, thanks for reporting. I tried the steps you've provided, by adding the AppLovin Ads SDK (without adding the API key or adding ads) and then running the app, but I'm not encountering the issue. Is it necessary to add the ads to encounter this issue? I'm unable to proceed with the registration of an account in AppLovin Ads SDK since it requires an uploaded app.

google-oss-bot

google-oss-bot commented on Sep 19, 2024

@google-oss-bot

Hey @HassannKhan. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

HassannKhan

HassannKhan commented on Sep 20, 2024

@HassannKhan
Author

Hey good sir, please don't rush to close the issue.
Tell me what information do you need from me? Although I have given all the details of the issue.
My project is using specified unity version as mentioned and it's using specified AppLovin's plugin version and External dependency manager.

When I try to resolve Android dependencies in my project, it fails. It does nothing on force resolve just gives a fake message. And on simple resolve option it gives errors as mentioned.
You may not required applovin account since I am facing the issue with resolving the Android dependencies.

Tell me what unity version did you use?

google-oss-bot

google-oss-bot commented on Sep 26, 2024

@google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@HassannKhan if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

23 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @binarynate@google-oss-bot@HassannKhan@argzdev@jaypatel2227

        Issue actions

          [Bug] Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated. Could not initialize class org.codehaus.groovy.reflection.ReflectionCache · Issue #705 · googlesamples/unity-jar-resolver