Can't download Android 12 source code

Which version of system do you use? Khadas official images, self built images, or others?

Android 12

Which version of system do you use? Khadas official images, self built images, or others?

Khadas-edge2-android12

Please describe your issue below:

I'm trying to get the source code for Android 12 following the instructions: https://docs.khadas.com/products/sbc/edge2/development/android/download-android-source-code

Post a console log of your issue below:


I enter the command:
repo init -u https://github.com/khadas/android_manifest.git -b Khadas-edge2-android12
I get the error:

File "/home/pcden/ANDROID/EDGE2/.repo/repo/main.py", line 95
    )
    ^
SyntaxError: invalid syntax

My system is on a computer Ubuntu 22.04.3 LTS
How can I fix this?

@denbon repo
Directly reference after decompression:

.repo/repo/repo init -u https://github.com/khadas/android_manifest.git -b Khadas-edge2-android12

Im getting the same problem but when i try to run your command i get this error

File “.repo/repo/repo”, line 51
def print(self, *args, **kwargs):
^

I noticed that you need to do this on Ubuntu 22.04.3

Anyway, the issue of repo command errors is related to the repo version, or you can download the latest version online to replace it.