2

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.

Unheilig
  • 16,196
  • 193
  • 68
  • 98
yuanheng zhao
  • 59
  • 1
  • 6

2 Answers2

3

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.

Field.wei
  • 69
  • 5
  • 1
    Can this be done in android studio? I have no eclipse installed. The project is cloned from Internet. – adamhj Nov 07 '16 at 04:39
  • 1
    @adamhj If you have android studios installed it can create a gradle build for an eclipse project by just importing the project ``File > New > Import Project...`` – Nick Pineda Dec 22 '16 at 19:38
2

Other people have said it here in the comments, the answer is inside Android Studio: File -> new -> import project

Johan Lund
  • 133
  • 3
  • 5