Download the Android Source Code

I followed the steps to download Android Source Code, after step 6, I got:

Error: Failed to call git rev-parse --git-dir --show-toplevel" " fatal: not a fir repository (or any of the parent directories): .git\n"

what did I miss ? How to fix it ?


have you installed git ? you can input git --version command to query

yes, I installed git 2.25.1

you can try to input git init command before input your command

@jasonl thanks, finally, I moved forward a little, I ran into another problem when I execute: repo init -u -b khadas-vims-pie

@ line 654 in
AttributeError: module ‘wrapper’ has no attribute ‘BUG_URL’


what is your installed python vesion?