简体   繁体   中英

Eclipse hangs on adding Gradle nature

Running Eclipse 2019-06, with Buildship 3.1.2. Created a project from existing folder, and when adding gradle nature, Eclipse does some work and then gets stuck on "Importing root project: Run build". Already removed and reinstalled Gradle, removed and reinstalled Buildship, deleted ~/.gradle and /.gradle files, tried using both Gradle wrapper and the current version of Gradle (5.6.2). Nothing in.metadata/.log file of help.

Found this message, however in ~/.gradle/daemon/5.6.2/daemon-*.logs:

Publishing a build scan to scans.gradle.com requires accepting the Gradle Terms of Service defined at https://gradle.com/terms-of-service . Do you accept these terms? [yes, no]

The answer seems to be to uncheck "Build Scans" under Gradle in Preferences.

I needed to Update the Buildship plugin in Eclipse and that fixed it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM