- Close IDE, if it's opened
- Go to File Explorer (Windows), Finder (macOS), File Manager (Linux) and change to Gradle cache folder
-
Windows:
%USERPROFILE%\.gradle\caches
-
macOS или Linux:
~/.gradle/caches
- Delete any folder that contains metadata
- Open your project in an IDE
- Make sure that you have an internet connection
- Refresh the Gradle configuration by clicking Reimport All Gradle Projects in the Gradle tool window in View | Tool Windows | Gradle. Here's the link to our Troubleshooting Guide for your reference.
- Ensure that JDK 21 is selected as Gradle JVM in Settings/Preferences | Build, Execution, Deployment | Build Tools | Gradle and as Project SDK in File | Project Structure.
- Check if you have a VPN enabled. If so, please turn it off and attempt to submit the solution again.
If the steps described above did not help, please collect the full IDE log bundle as per this article and attach it to this support form. Don't forget to include a link to your profile and a problem or project stage you're trying to solve. It will help us to understand the issue and process your request much faster.