Android的工作室:从摇篮进口项目 [英] Android Studio: import project from Gradle

查看:195
本文介绍了Android的工作室:从摇篮进口项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要导入我的Andr​​oid项目(与Android工作室有4个月前创建)我与Android Studio的新的笔记本电脑。所以,当我选择在我的项目是文件夹,会出现一个弹出不同的选项从摇篮导入项目;默认情况下使用本地分配的gradle被选中。

I want to import my android project (created with Android Studio there are 4 months ago) to my new laptop with Android Studio. So when I select the folder where my project is, a pop-up appears "Import project from Gradle" with different options; by default "Use local gradle distribution" is selected.

但我不知道如何让我的笔记本电脑的摇篮主路径。

But I don't know how to get the Gradle home path on my laptop.

ENV:


  • MACOSX

  • Android的工作室v0.8.6(测试版)

推荐答案

你有安装的gradle?如果没有,下面的指南将帮助。

Do you have gradle installed? If not, following this guide will help.

理想情况下你不想虽然从摇篮导入项目选项中选择 - 你应该使用与项目创建的包装的gradle。如果没有包装的gradle,创建一个新的项目并在复制gradle这个包装。

Ideally you don't want to select the "Import project from Gradle" option though - you should be using the gradle wrapper created with the project. If there is no gradle wrapper, create a new project and copy the gradle wrapper across.

该包装的gradle将下载该项目的正确版本的Gradle,并避免了需要的gradle有本地安装。

The gradle wrapper will download the correct gradle version for the project, and avoids the need to have gradle installed locally.

这篇关于Android的工作室:从摇篮进口项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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