IntelliJ 13 EAP: IllegalStateException: Unable to find Gradle home directory for project 'myproject': Unable to find Gradle home directory for project 'myproject'

337 views
Skip to first unread message

Stefan Hoth

unread,
Jun 4, 2013, 9:31:45 AM6/4/13
to adt...@googlegroups.com
Hi,

since I began to use IntelliJ 13 EAP (should be the same as Android Studio)  I have a nasty problem with the IDE: While my build works fine on the cmd line the IDE always complains about my setup with a really unhelpful line 
IllegalStateException: Unable to find Gradle home directory for project 'myproject': Unable to find Gradle home directory for project 'myproject'

My project is setup like this:

/(root)
/_libraries/actionbarsherlock/build.gradle
/res
/src
/(all other android stuff)
/build.gradle
/settings.gradle

In settings.gradle the library is included and the build.gradle references this project.

As I said build on the cmd line works fine but I seem to break an assumption of Android Studio as I can't get it to work.

Help?

Thx,
Stefan
 

Jonathan Steele

unread,
Jun 4, 2013, 2:08:39 PM6/4/13
to adt...@googlegroups.com
The Gradle Home Directory is where .gradle supposed to be at. On your users directory, it should have .gradle.

Xavier Ducrohet

unread,
Jun 5, 2013, 1:18:47 PM6/5/13
to adt...@googlegroups.com
I haven't tried IDEA 13 EAP with Gradle builds. You don't seem to have a wrapper in your project? I think you need to tell IJ somehow where your local install of Gradle is.


 

--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!
Reply all
Reply to author
Forward
0 new messages