Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 245 Vote(s) - 3.48 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot access 'java.lang.Object' which is a supertype of 'org.gradle.api.artifacts.dsl.DependencyHandler'

#1
Why is my build.gradle.kts file looking like this? This is a fresh Spring Boot project generated with start.spring.io. I already tried invalidate caches / restart, rebuild, resyncing and nothing works. Thanks in advance!

[![enter image description here][1]][1]


[1]:
Reply

#2
This is what solved it:

1. Delete ~/.gradle/caches
2. Uninstall and Delete ~/Library/Application\ Support/Library/JetBrains/IntelliJIdea
3. Delete \<project dir>/.gradle
4. Delete \<project dir>/.idea
5. Start IDEA and reimport the project.
Reply

#3
I always had this issue in Android studio, but there is an easy way to solve it:

**replace default "Embedded JDK" with a path to the separately downloaded JDK**

For example in Android studio: Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JDK

After that, `Reload Gradle Project`.
Reply

#4
The IDE's JDK registrations are most likely inaccurate or outdated.
In my case this was in Android Studio and tied to a Toolbox issue. Whatever your case, the principle is the same.

## Option 1: Different JDK

Search for the "Gradle" page settings in Preferences, pick or download a different compatible JDK from the list, then run Gradle sync.

If that works, you know the problem. If you can just stick with the new one, great. If you need to fix the previous JDK (e.g. you're in Android Studio and want the embedded one), you will want to rebuild the JDK table.

## Option 2: Rebuild JDK Table

1. Shut down the IDE
2. Find and delete `jdk.table.xml` from your app's config directory (somewhere in `~/Library/Application Support/` or `%APPDATA%`)
3. Start up the IDE and let it finish indexing.
4. Return to Gradle preferences and specify your preferred JDK
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through