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

查看:44
本文介绍了将 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.在下面的对话框中,选择使用 gradle 包装器,然后单击确定.(你不需要指定 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,然后选择生成 Gradle 构建文件.选择要导出到 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天全站免登陆