-
Notifications
You must be signed in to change notification settings - Fork 350
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
[Bug] Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated. Could not initialize class org.codehaus.groovy.reflection.ReflectionCache #705
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
what information is missing Mr BOT @google-oss-bot |
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. |
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! |
Hey good sir, please don't rush to close the issue. 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. Tell me what unity version did you use? |
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. |
Thanks for the extra details, @HassannKhan. I'm using the following versions.
Perhaps, this issue is related to our old issues #699 where the resolution was to increase the versions for the following:
Could you try these and see if it makes any difference? But there's likely a difference in our configuration which is causing a different behavior. Is there any chance you could share a minimal reproducible example so we can investigate this further? |
I made another empty project and set the API levels as per your instructions. Attached a screenshot. As you can see it says, resolution failed with some issue and on the other hand it says resolution succeed. A few files (GradleTemplate, mainTemplate, settingsTemplate) are added in the android folder of plugins folder which prevents the app from crashing. But the ads do not work. I have attached an empty project that contains one button and a script to run ads. This script is already running in my other apps. Project download link : https://drive.google.com/file/d/19Yc1og1_JKmf-GJiyglJa76noaX4Ow6s/view?usp=sharing |
APK link : (in case you wanna try it ) https://drive.google.com/file/d/1L1nPFMeVhe96KCpqDlvFaoQtUKfnzFBk/view?usp=sharing |
I just encountered this same error ( |
@binarynate Sir your recommendation did not work in my case. |
@argzdev any updates? |
I just encountered this same error (Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated) i am using Firebase messaging and authentication, when i ForceResolve the libraries it's throw error Please help me to solve this issue. |
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the issue here:
FAILURE: Build failed with an exception.
Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.
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.
The text was updated successfully, but these errors were encountered: