Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update git submodules in Android Studio?

I'm trying to build this project at "https://github.com/jonasoreland/runnerup" on Android Studio. But when I'm going to compile it I received this error:

enter image description here

I think it's because I've to update git submodules like said on a page project where is specified to Run the following command to get all submodules:

git submodule init && git submodule update

But I'm new with git and I don't know how to do this. I ask you if you can explain me step by step how to do this.

like image 586
stackoverflow Avatar asked Mar 16 '16 09:03

stackoverflow


2 Answers

you can try this git command

git submodule update --recursive --init
like image 74
Diptendu Das Avatar answered Nov 01 '22 13:11

Diptendu Das


Option 1

$ git clone https://github.com/jonasoreland/runnerup.git ./runnerup
$ git submodule init
$ git submodule update

Option2

$ git clone --recursive https://github.com/jonasoreland/runnerup.git ./runnerup

For more details on submodule: https://git-scm.com/docs/git-submodule

like image 42
dopeddude Avatar answered Nov 01 '22 14:11

dopeddude