Why is android project not opening properly in Android Studio?

本秂侑毒 提交于 2019-12-13 01:23:51

问题


Why is android project not opening properly in Android Studio? I have an android project, set up as such

However, when I open it on android studio, The structure is setup up as such

Having understood that the project is from an eclipse ide, I tried to open the file, and then export it, however I get this error:

Project 'freegemas-android' is missing project dependency '/freegemas' in Eclipse workspace.


回答1:


Export from Eclipse

1.Update your Eclipse ADT Plugin (you must have version 22.0 or higher).

2.In Eclipse, select File > Export.

3.In the window that appears, open Android and select Generate Gradle build files.

4.Select the projects you want to export for Android Studio and click Finish.

Your selected projects remain in the same location but now contain a build.gradle file and are ready for Android Studio.

Import into Android Studio

1.In Android Studio, select File > Import Project.

2.Locate a project you exported from Eclipse, select the project's root directory and click OK.

3.Select Create project from existing sources and click Next.

4.Follow the walk-through to complete the import process.



来源:https://stackoverflow.com/questions/29024727/why-is-android-project-not-opening-properly-in-android-studio

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