为什么Android项目没有Android Studio中正常打开?
为什么Android项目无法正常Android Studio中打开?
我有一个Android项目,建立这样
Why is android project not opening properly in Android Studio? I have an android project, set up as such
然而,当我打开它在Android工作室,
其结构是设置了这样
However, when I open it on android studio, The structure is setup up as such
已经了解,该项目是从Eclipse IDE中,我试图打开该文件,然后导出它,但是我得到这个错误:
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:
项目freegemas-Android的缺失项目依赖/ freegemas在Eclipse工作空间。
从Eclipse导出
1.Update您的Eclipse ADT插件(必须具有22.0或更高版本)。
1.Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
2.In Eclipse中,选择文件>导出。
2.In Eclipse, select File > Export.
3.In出现的窗口中,开放的Android和选择生成摇篮建立文件。
3.In the window that appears, open Android and select Generate Gradle build files.
4.选择要导出为Android Studio并单击完成的项目。
4.Select the projects you want to export for Android Studio and click Finish.
您选择的项目仍然在相同的位置,但现在包含的build.gradle文件,并准备为Android工作室。
Your selected projects remain in the same location but now contain a build.gradle file and are ready for Android Studio.
导入到Android的工作室
Import into Android Studio
1.In的Android Studio中,选择文件>导入项目。
1.In Android Studio, select File > Import Project.
2.找到从Eclipse导出的项目,选择项目的根目录,然后单击确定。
2.Locate a project you exported from Eclipse, select the project's root directory and click OK.
3,选择从现有的资源项目,然后单击下一步。
3.Select Create project from existing sources and click Next.
4.按照步行通过完成导入过程。
4.Follow the walk-through to complete the import process.