[JAVA] When Gradle build stops when importing on Mac

Problems / error messages that are occurring

As the title suggests, when importing when creating an application using Springboot with STS It got stuck during the build and STS stopped completely. Looking at the error message

org.gradle.tooling.BuildException: Gradle distribution 'https://services.gradle.org/distributions/gradle-5.4.1-bin.zip'Could not perform build action using.

Comes out.

Conclusion

https://stackoverrun.com/ja/q/11329562 スクリーンショット 2020-05-21 16.01.59.png

In this answer, it's in .gradle / caches / 5.4.1 in a hidden folder in your user directory Moved the "scripts" and "scripts-remapped" folders, restarted STS → imported to build.

I tried various things

-I think the cause is the Gradle version, so build with the latest version. → STS has solidified.

-Is it caused by the memory of Eclipse? https://qiita.com/crarrry/items/7601290c11f7a310913b With reference to this, I tried to increase the memory. → STS has solidified.

-Since it freezes in the same place every time, it is identified that the cause is that a file is created strangely during the import. https://stackoverrun.com/ja/q/11329562

Cause

An unexpected termination occurred during the import, and a half-finished file was created during the Gradle build.

Finally

It tends to take time to build the environment. There was more information about these errors in Android studio than in STS, so I hope you find it helpful.

Supplementary information (FW / tool version, etc.)

Mac Catalina version 10.15.4 JDK 14.0.1 STS 4.6.1

reference https://qiita.com/crarrry/items/7601290c11f7a310913b https://stackoverrun.com/ja/q/11329562

We are looking for a web engineer to work with!

Real Estate SHOP Nakajitsu is looking for friends to create their own services. For more information, please contact Wantedly.

Recommended Posts

When Gradle build stops when importing on Mac
Install gradle on mac
Solution when mysql stops working on mac (Rails project running)
Build a Java development environment on Mac
Build Apache + Tomcat + Pebble locally on Mac
Build a JMeter environment on your Mac
Build Java x Spring x VSCode x Gradle on Docker (1)
[Ruby on Rails] Let's build an environment on mac
When Kubernetes doesn't start on Docker Desktop for Mac
Build Java development environment with VS Code on Mac
What to see when IntelliJ doesn't start on Mac
Until building Spring-Boot using Eclipse on Mac (Gradle version)
Run STS4 on Mac
Install Java on Mac
First gradle build (Java)
Install openjdk11 on mac
Install OpenJDK 8 on mac
Build Zabbix on Ubuntu 20.04
Note when pip install mysqlclient cannot be installed on Mac
What I did when I stumbled on IntelliJ gradle 2.2 → 2.6 environment migration
Build a CentOS 8 virtual environment on your Mac with VirtualBox
Notes on character encoding when migrating from windows to Mac
Attempt to source build JDK9 EA on Mac OSX (failed)