将 Eclipse 项目导入 Android studio 项目

Import Eclipse project to Android studio project

在 Android Studio 中有什么方法可以导入 Eclipse 项目,或者我是否必须复制并粘贴文件?

首先,尝试使用 official documentation

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 然后 select 生成 Gradle 构建文件。 Select 要导出到 Android Studio 的项目,然后单击“完成”

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