子文件夹不从Git的使用Android进口工作室 [英] Subfolders not being imported from Git using Android Studio

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

问题描述

我试图导入我的项目是使用Android工作室的到位桶主持。我使用的是VCS - >从版本控制系统结帐 - > Git的菜单选项,然后连接到我的帐户到位桶。在回购的根目录下的所有文件被完美地进口。然而,没有主要的子文件夹(大约有6-7文件夹)都被导入到Android的工作室。我试过,我通过谷歌搜索碰到的一切,但我迷路了,以现在该怎么做。

I'm trying to import my project that's hosted on BitBucket using Android Studio. I'm using the VCS -> Checkout from Version Control System -> Git menu option and connecting to my BitBucket account. All files in the root directory of the repo are being imported flawlessly. However, none of the main subfolders (there are about 6-7 folders) are being imported into Android Studio. I've tried everything that I came across via a Google Search but I'm lost as to how to do this now.

我假设我可能没有正确,也许我配置的gradle脚本?我可以导入项目从我的本地计算机的副本只是罚款(文件/文件夹结构是本地计算机上完全一样,我的混帐回购协议)。另一个有趣的事情是,文件夹下载到从Git的我指定的项目文件夹。他们只是没有显示在Android的工作室。任何指针?谢谢!

I'm assuming I may not have configured my gradle scripts correctly, maybe? I can import the project just fine from my local computer's copy (the file/folder structure is exactly the same on the local computer and my Git repo). Another interesting thing is that the folders are being downloaded to my specified project folder from Git. They just aren't showing up in Android Studio. Any pointers? Thanks!

推荐答案

从:<一href=\"http://stackoverflow.com/questions/17961397/android-studio-new-project-missing-folders\">android工作室新项目丢失的文件夹

这里的问题是,我认为Android的工作室会为应用程序创建的模块。我以为这是因为它让我在一开始对应用程序的名称,模块名称,包装,SDK信息等。

The problem here is that I assumed android studio would create a module for the application. I assumed this because it asked me at the beginning for app name, module name, package, sdk info etc.

这个假设被证明是假的。你必须通过文件>项目结构手动创建您的第一个模块。做到这一点后,项目资源管理器显示的文件。

This assumption turned out to be false. You must create your first module manually through File > Project Structure. After that is done, the project explorer shows the files.

这篇关于子文件夹不从Git的使用Android进口工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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