idude
idude

Reputation: 4922

Trouble Import Android Project from Github

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!

Upvotes: 1

Views: 45

Answers (1)

VonC
VonC

Reputation: 1328522

Check if /root has a .gitmodules file, which could indicate Android Project is a submodule.
Then Android Project would not have any .git in it, because the history would be managed by the parent folder.

Upvotes: 1

Related Questions