如何在 Android Studio 中更新 git 子模块?

sta*_*low 6 git git-submodules android-studio

我正在尝试在 Android Studio上的“ https://github.com/jonasoreland/runnerup ”上构建这个项目。但是当我要编译它时,我收到了这个错误:

在此处输入图片说明

我认为这是因为我必须像页面项目中所说的那样更新 git 子模块,其中指定为运行以下命令以获取所有子模块:

git submodule init && git submodule update
Run Code Online (Sandbox Code Playgroud)

但我是 git 的新手,我不知道该怎么做。我问你是否可以一步一步地向我解释如何做到这一点。

dop*_*ude 1

选项1

$ git clone https://github.com/jonasoreland/runnerup.git ./runnerup
$ git submodule init
$ git submodule update
Run Code Online (Sandbox Code Playgroud)

选项2

$ git clone --recursive https://github.com/jonasoreland/runnerup.git ./runnerup
Run Code Online (Sandbox Code Playgroud)

有关子模块的更多详细信息:https ://git-scm.com/docs/git-submodule