自动移植项目在Android的工作室摇篮 [英] Automatically Migrating projects to gradle in Android studio

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

问题描述

我在与Android的工作室在过去做了一些应用程序,并有与他们没有任何问题。
我可以从很多网站打开示例项目,例如:developer.android.com/。
现在的Andr​​oid Studio的更新后,我不能在Android Studio中打开的项目,而无需手动迁移它们,这是由Android本身工作室更新之前完成。
可能是什么问题呢?
首先,我得到这样的警告,即检测到Android框架。

然后选择设置框架,并点击确定后,我得到这个:

I made some apps in the past with android studio, and there was no problems with them. And I could open example projects from many sites, for example: developer.android.com/. Now after an update of android studio, I can't open projects in android studio without migrating them manually, which was done before the update by android studio itself. What could be the problem now? First I get this warning, that android framework is detected. Then after choosing the setup frameworks and clicking ok, I get this:

正如你可以看到它是不是摇篮基础的项目。
我能做些什么来让Android工作室自动再次迁移项目?

As you can see it is not gradle based project. What can I do to make android studio automatically migrate projects again?

推荐答案

导入ANDROID Studio项目在Android Studio中:

如果你想导入的Andr​​oid Studio项目然后执行以下操作:

If you want to import An Android Studio Project then do the following:

1
选择 打开一个现有的Andr​​oid Studio项目

2 浏览您所需的项目derectory。

2. Browse your desired project derectory.

3。现在,而不是选择包含项目的文件夹,您必须选择的build.gradle 文件,该文件只是内部的该项目的父文件​​夹。

3. Now rather than selecting the folder that contains your project, you have to select the build.gradle file that is just inside of your parent folder of the project.

这不会造成任何问题,也不会要求你迁移到 gradle这个并导入任何框架都没有。

It will not create any problem and will not ask you to migrate into gradle and import any framework at all.

导入Eclipse项目在Android Studio中:

如果要导入的Eclipse项目Android Studio中:

If you want to import Eclipse Project in Android Studio:

1 选择导入项目(Eclipse的ADT,摇篮等)

2 ,然后没有什么特别的只是按照向导的指示。

2. Then nothing special just follow the instructions in the wizard.

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

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