Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 758
BENBUN Coder Avatar asked May 16 '13 22:05

BENBUN Coder


People also ask

Where is import option in Android?

On your Android phone or tablet, open the Contacts app . At the bottom, tap Fix & manage Import from file. If you have multiple accounts on your device, pick the account where you want to save the contacts. Find and select the VCF file to import.

Can we import module from source in Android Studio?

Select the source directory of the Module you want to import and click Finish. Open Project Structure Dialog (You can open the PSD by selecting File > Project Structure) and from the left panel click on Dependencies. Select the module from the Module(Middle) section In which you want to add module dependency.


1 Answers

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

like image 97
vwvan Avatar answered Oct 20 '22 00:10

vwvan