BENBUN Coder
BENBUN Coder

Reputation: 4881

Android Studio import error

Just trying out Android Studio. I have exported my project Gradle file from Eclipse and imported it into Android Studio.

The project will not build in Android Studio, it fails with a message saying

IllegalStateException: Unable to find Gradle home directory for project 'NVRRClubApp': Unable to find Gradle home directory for project 'NVRRClubApp'

I have no idea what my Gradle home directory should be, or even where to set it. I was hoping the import would have fixed that for me.

Any ideas how to start fixing this?

Upvotes: 12

Views: 8963

Answers (1)

vwvan
vwvan

Reputation: 457

Gradle needs a home directory to store its junk, like git. Choose a directory that is convenient for how your store your development files. Something that will get backed up when you back up your work.

Mine is: C:\Documents and Settings\GeorgeDeVargas\My Documents\Software

You will then likely get some java null pointer errors as you configure Android:

See http://forums.gradle.org/gradle/topics/error_compilejava_java_lang_nullpointerexception_no_error_message

Upvotes: 1

Related Questions