How to import project files without Gradle files into Android Studio

可紊 提交于 2020-01-15 05:58:06

问题


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.


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/30430356/how-to-import-project-files-without-gradle-files-into-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!