为什么Android项目没有Android Studio中正常打开? [英] Why is android project not opening properly in Android Studio?

查看:271
本文介绍了为什么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出现的窗口中,开放的Andr​​oid和选择生成摇篮建立文件。

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的Andr​​oid 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.

这篇关于为什么Android项目没有Android Studio中正常打开?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆