简体   繁体   中英

Import Project from IntelliJ IDEA to Android Studio

I was only able to find guides on how to import an Eclipse project into Android Studio. But I am not using Eclipse, I am using IntelliJ IDEA.

How do I generate the new Gradle build files for my project?

EDIT: To clarify. I know how to setup Gradle manually. But that's not what I am asking for. The question is: Am I able to let the Android SDK generate the Gradle files for me? Like the ADT does... But since I'm not using Eclipse, I don't have access to the export feature of ADT!

Have you started Android Studio yet? Because importing IDEA Projects is one of the possible selections you can choose in the beginning.

If you passed that initial state already, just go to File -> Import Project and select the folder of your project that you want to import. The rest is straight forward and pretty bullet proof as both are basically IDEA :D

Okay for everyone who needs to do this:

It's not possible.

But if you want to create the neccessary Gradle build file manually. Here it is: https://gist.github.com/Goddchen/5600345

You need to "Import Project (Maven, Gradle, ...)" and then select not the folder, but 'settings.gradle' instead. Then Android Studio will do everything by itself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM