We are developing an SDK that will be issued to our customers, as well as several applications that will use the SDK. The easiest way to develop an SDK is to have a master project โ for example, a test application in which the SDK is included as a module. This allows the source to be available during debugging and it is much easier to make bug fixes in the SDK.
My assumption was that when using Android Studio to create a โnew project from version controlโ (the file menu), the submodules specified in .gitmodules
will also be cloned, however this is not the default behavior. When performing this action in a repo with .gitmodules
, and settings.gradle
has an include
statement for the module (does it make sense right?), AS displays a VCS root error without a source. "Registered as git root, but no git repositories found there"
- Is there a reason why this should not be the default behavior? Is this a git thing?
- If I want to update this behavior, is it a git alliance (proposed here) or is there an Android Studio configuration to use something like
git clone --recursive
?
My goal is to reduce friction for new developers on my team. I am considering using SourceTree (which automatically clones the submodules) or writing down the git commands needed as a reference, however, I prefer when things work as expected in the IDE.
The environment is Android Studio 1.5.1 and git 1.9.X - both windows 7 and OSX.
source share