将Eclipse项目导入Android studio项目 [英] Import Eclipse project to Android studio project

查看:319
本文介绍了将Eclipse项目导入Android studio项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android Studio中有没有办法导入Eclipse项目,还是我必须复制和粘贴文件?

In Android Studio is there any way to import Eclipse projects or do I have to copy and paste the files?

推荐答案

首先,尝试使用官方文档


在Android Studio中,关闭当前打开的所有项目。您应该看到
欢迎使用Android Studio窗口。单击导入非Android Studio
项目。找到从Eclipse导出的项目,展开它,
选择build.gradle文件,然后单击OK。在以下对话框中,
选中Use gradle wrapper,然后单击OK。 (您不需要
指定Gradle主页。)

In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window. Click Import Non-Android Studio project. Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK. In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)

如果失败,请务必安装最新的ADT插入。 (v23)单击文件 - >导出。打开Android,然后选择Generate Gradle build files。选择要导出到Android Studio的项目,然后单击完成

If you fail, be sure to install the latest ADT plugin. (v23) Click File -> Export. Open Android and then select Generate Gradle build files. Select the projects you want to export to Android Studio and then click Finish

在Android Studio中单击文件 - >导入项目。找到最近导出的项目,然后从现有源创建项目,然后单击下一步。你现在应该好。

In Android Studio click File -> Import Project. Locate your recently exported project then Create project from existing sources and click Next. You should be good now.

这篇关于将Eclipse项目导入Android studio项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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