How To Fix Gradle Build Freezing
If your Eclipse locks or gets really slow when building your Gradle model, try:
Deleting Unversioned Files From Your Workspace
TODO
The following is probably similar to doing a 'git clean', and needs to be further investigated.
**/.settings
**/.classpath
**/.project
cd /path/to/workspace find -type d -name .settings -exec rm -rf {} \; find -type f -name .classpath -exec rm -rf {} \; find -type f -name .project -exec rm -rf {} \; find -type d -name .idea -exec rm -rf {} \; find -type f -name *.iml -exec rm -rf {} \; find -type d -name bin -exec rm -rf {} \; find -type d -name build -exec rm -rf {} \; find -type d -name gradle -exec rm -rf {} \; find -type f -name .gradle -exec rm -rf {} \; find -type f -name gradlew -exec rm -rf {} \; find -type f -name gradle.bat -exec rm -rf {} \;
Deleting Gradle Cache Files
~/.gradle/caches
~/.gradle/daemon