简体   繁体   中英

How to import project files without Gradle files into Android Studio

I want to import a project into my Android Studio. It works well in Eclipse when my friend gave it to me.

But I couldn't import it into my Android Studio. And all the tutorial told me that I should add/edit the Gradle files when there is no Gradle files in this project. So what am I going to do without having to download the Eclipse IDE? Many thanks.

You can export the project from eclipse to a gradle project.

  1. Right clicks your project.

  2. Clicks the 'export' in the popup menu.

  3. Choose Android > Generate gradle build files. (If there is not 'Generate gradle build files', maybe you need to install gradle plugin for eclipse: here ) And then you can import this project on android studio.

其他人在评论中已经说过了,答案就在Android Studio内部:File-> new-> import project

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