Android Studio 0.8.1:导入的项目,缺少根文件夹 [英] Android Studio 0.8.1: imported project, missing root folder

查看:37
本文介绍了Android Studio 0.8.1:导入的项目,缺少根文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的 Eclipse 项目导入到 Android Studio.导入成功,除了项目选项卡中未显示根项目文件夹;只有嵌套模块是可见的.

I imported my Eclipse project to Android Studio. Import succeeded except that root project folder in not shown in the Project tab; only nested modules are visible.

如何让项目的根文件夹出现在模块之上?

How do I make project's root folder appear on top of modules?

附言我查看了 android studio new project missing folders 但解决方案不起作用对我来说.

P.S. I looked into android studio new project missing folders but the solution doesn't work for me.

推荐答案

问题是因为导入向导没有为根项目模块创建 .iml 文件.

The problem was because the import wizard didn't create an .iml file for the root project module.

我通过关闭项目然后通过双击项目的文件夹(不是在 build.gradle 上)再次导入来解决这个问题.所以它创建了这个 .iml 文件,现在在它的位置显示根文件夹.

I have solved this by closing the project then importing it again by double clicking on the project's folder (not on build.gradle). So it created this .iml file and now is displaying the root folder in its place.

附言我确实重新导入了 Android Studio 0.8.3,也许他们已经修复了一些问题.

P.S. I did reimport with Android Studio 0.8.3, maybe they have fixed something.

这篇关于Android Studio 0.8.1:导入的项目,缺少根文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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