SyntaxError: invalid syntax to repo init in the AOSP code
try these commands curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo chmod a+x ~/bin/repo python3 ~/bin/repo init -u git@….
try these commands curl https://storage.googleapis.com/git-repo-downloads/repo-1 > ~/bin/repo chmod a+x ~/bin/repo python3 ~/bin/repo init -u git@….
Ok, so thanks for the effort, I found a similar question here Summary: Invoking $ repo sync -f -j10 did the trick. As it seems -f or –force-broken flag allows it to recover from network error and more important recover on broken/missing objects.
Repo attempts to download a prepackaged bundle file to bootstrap each git prior to downloading the most recent data via Git’s HTTP protocol. The latter is more expensive on the server side and results in worse performance so the bundle file allows the download to cut some corners. If a bundle file isn’t available (like … Read more
As is mentioned in the android webpage, repo does not replace git. It is just a tool over git and helps you to manage multiple git repositories. For example, suppose I have a big project which has a lot of features and I have several teams working on each feature and I created one repository … Read more
I ran into the same problem, and I solved it by running the following commands which is given here pod repo remove master pod setup pod install