Reputation: 15785
I am new to gradle, and I have a problem that the eclipse got stuck when I create a gradle project
This is what I install in my eclipse luna
And I am trying to create a gradle project in eclipse
The process got stuck!
PS: I tried I create a new project and create a build.gradle myself and use gradle eclipse
to configure the project , and this works fine and I can use this project in eclipse .But I have to type gradle eclipse
again when I add some dependencies, or there are compile errors
Please help! Thank you!
Upvotes: 11
Views: 11103
Reputation: 5259
I had the same problem: a project's build got stuck at some point. I've verified directory structure that was created under the new project and it looked as follows:
rwxr-xr-x 4 128 Feb 21 13:02 bin
-rw-r--r-- 1 1034 Feb 21 13:00 build.gradle
drwxr-xr-x 3 96 Feb 21 13:00 gradle
-rwxr-xr-x 1 5296 Feb 21 13:00 gradlew
-rw-r--r-- 1 2260 Feb 21 13:00 gradlew.bat
-rw-r--r-- 1 356 Feb 21 13:00 settings.gradle
drwxr-xr-x 4 128 Feb 21 13:00 src
It basically meant that all necessary directories have been created. If this is the case with your project, you can do the following to recover:
Upvotes: 0
Reputation: 1
May be you're running gradle behind a proxy server. You should try setting a gradle.properties in your gradle user home directory with something like this:
systemProp.http.proxyHost=mybeautiful.proxy.corp
systemProp.http.proxyPort=8080
systemProp.https.proxyHost=mybeautiful.proxy.corp
systemProp.https.proxyPort=8080
Upvotes: 0