机器人工作室"使用摇篮包装"变灰 [英] android studio "Use gradle wrapper" grayed out

查看:149
本文介绍了机器人工作室"使用摇篮包装"变灰的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图Eclipse项目导入到Android的工作室。 在迁移说明它说:在下面的对话框,使用假包装摇篮选中,然后单击确定。(你并不需要指定摇篮家)。

I try to import an eclipse project into Android studio. In the migration instructions it says "In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)"

问题是,使用摇篮包装是选择,而呈灰色。

The problem is that the ""Use gradle wrapper" is unselected and grayed out.

有什么建议?

推荐答案

1)创建与Android Studio中的一个新的简单的项目。

1) Create a new simple project with Android Studio.

2)找到摇篮文件夹中的新项目。

2) Find the gradle folder in the new project.

3)在Eclipse中使用导出选项创建build.gradle脚本。 (至少需要ADT版本22.0)

3) Use the export option in eclipse to create the build.gradle script. (Requires at least adt version 22.0)

4)复制摇篮文件夹到要导出到Android Studio中的项目。

4) Copy the gradle folder into the project you want to export to Android Studio.

5)现在尝试导入这个项目,U应能选择包装复选框。

5) Now try to import this project, u shall be able to select the wrapper check box.

这可能会解决你要求,你还可以设置摇篮主路径的问题,并使用其他选项就好了。

This may resolve the problem you asked for, you can also set the Gradle home path and use the other option just fine.

希望这有助于!

这篇关于机器人工作室"使用摇篮包装"变灰的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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