Following the Android Migration procedures, I'm unable to complete the last step in Import into Android Studio:
遵循Android迁移程序,我无法完成导入Android Studio的最后一步:
Export from Eclipse:
从Eclipse导出:
- Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
- In Eclipse, select File > Export.
- In the window that appears, open Android and select Generate Gradle build files.
- Select the project you want to export for Android Studio and click Finish.
更新Eclipse ADT插件(必须具有22.0或更高版本)。
在Eclipse中,选择“文件”>“导出”。
在出现的窗口中,打开Android并选择Generate Gradle build files。
选择要为Android Studio导出的项目,然后单击“完成”。
Import into Android Studio:
导入到Android Studio:
- In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
- Click Import 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.)
在Android Studio中,关闭当前打开的所有项目。您应该会看到欢迎使用Android Studio窗口。
单击导入项目。
找到从Eclipse导出的项目,展开它,选择build.gradle文件,然后单击OK。
在以下对话框中,选中Use gradle wrapper,然后单击OK。 (您无需指定Gradle主页。)
1 个解决方案
#1
2
do the eclipse step where you export to generate the gradle build file stop importing your project for now and create a new one. close android studio. navigate on your file system to the new project. take the "gradle" folder in there and copy it in to your project.
执行导出的eclipse步骤以生成gradle构建文件,暂时停止导入项目并创建一个新项目。关闭android工作室。在您的文件系统上导航到新项目。在那里取“gradle”文件夹并将其复制到您的项目中。
try again. :-)
再试一次。 :-)
#1
2
do the eclipse step where you export to generate the gradle build file stop importing your project for now and create a new one. close android studio. navigate on your file system to the new project. take the "gradle" folder in there and copy it in to your project.
执行导出的eclipse步骤以生成gradle构建文件,暂时停止导入项目并创建一个新项目。关闭android工作室。在您的文件系统上导航到新项目。在那里取“gradle”文件夹并将其复制到您的项目中。
try again. :-)
再试一次。 :-)