Android的工作室导入模块按钮丢失 [英] Android studio import module button missing

查看:198
本文介绍了Android的工作室导入模块按钮丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很长的历史与Eclipse,但我想尝试Android的工作室。因此,我创建新的项目,现在我想SlidingMenu库添加到它。我发现一些教程的说要到项目结构,点击加号按钮,并选择导入模块。

I've got a long history with Eclipse, but I wanted to try Android Studio. So I created new project and now I want to add SlidingMenu library to it. I found some tutorials whose say to go to Project structure, click plus button and select Import module.

但没有导入模块选项,当我点击加号,然后新建模块窗口弹出。我currenty采用Android工作室v0.3.6。现在proccess导入模块不同?

But there is no Import module option, when I click plus then New Module window pops up. I'm currenty using Android studio v0.3.6. Is now proccess to import module different?

感谢

推荐答案

导入模块功能已经基于摇篮项目被删除,因为它previously并未在摇篮做正确的事情构建文件,它会把你的项目在一个混乱状态;它将被重新启用时,它的正确实施。 bug跟踪它在 https://开头code .google.com / p /安卓/问题/细节?ID = 62122

The Import Module feature has been removed for Gradle-based projects because it previously didn't do the right thing with your Gradle build files and it would put your project in a confusing state; it will be re-enabled when it's properly implemented. The bug tracking it is at https://code.google.com/p/android/issues/detail?id=62122.

在此期间,添加一个模块,则需要手工编写的build.gradle 文件吧,将模块添加到您的<$ C参$ C> settings.gradle 文件,如果该项目仍处于Android的开放工作室进行更改后,点击同步工程与摇篮文件工具栏中的按钮。

In the meantime, to add a module, you need to write a build.gradle file for it by hand, add a reference to the module to your settings.gradle file, and if the project is still open in Android Studio after you make the changes, click on the "Sync Project with Gradle Files" button in the toolbar.

如果你不熟悉的摇篮,你可以的 http://tool​​s.android.com/tech-docs/new-build-system/user-guide

If you're not familiar with Gradle, you can get docs on the particulars of Android Gradle projects at http://tools.android.com/tech-docs/new-build-system/user-guide.

这篇关于Android的工作室导入模块按钮丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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