Trouble Import Android Project from Github

时间:2018-03-23 00:41:36

标签: android git android-studio pull-request

Let's say my project directory on Github looks like this

\root
    \Readme.md
    \Android Project I need to Import
        \app
        \and so on

Whenever I try to import this Git repository into Android Studio, I can't access my files because the Android project is a sub-directory. I can't clone the project from the command line because then Android Studio refuses to open it.

Has anyone else experienced this or knows what to do? I've been stuck for a few hours on this.

Thanks in advance!

1 个答案:

答案 0 :(得分:1)

检查/root是否有.gitmodules文件,这可能表示Android Project是子模块。
然后Android Project中不会包含任何.git,因为历史记录将由父文件夹管理。