Android Studio导入项目 - 使用gradle包装器“已禁用选项”

时间:2023-01-17 13:58:02

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导出:

  1. Update your Eclipse ADT Plugin (you must have version 22.0 or higher).
  2. 更新Eclipse ADT插件(必须具有22.0或更高版本)。

  3. In Eclipse, select File > Export.
  4. 在Eclipse中,选择“文件”>“导出”。

  5. In the window that appears, open Android and select Generate Gradle build files.
  6. 在出现的窗口中,打开Android并选择Generate Gradle build files。

  7. Select the project you want to export for Android Studio and click Finish.
  8. 选择要为Android Studio导出的项目,然后单击“完成”。

Import into Android Studio:

导入到Android Studio:

  1. In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
  2. 在Android Studio中,关闭当前打开的所有项目。您应该会看到欢迎使用Android Studio窗口。

  3. Click Import Project.
  4. 单击导入项目。

  5. Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
  6. 找到从Eclipse导出的项目,展开它,选择build.gradle文件,然后单击OK。

  7. In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)
  8. 在以下对话框中,选中Use gradle wrapper,然后单击OK。 (您无需指定Gradle主页。)

Android Studio导入项目 - 使用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. :-)

再试一次。 :-)