I also got this problem and ,et did not find a solution. Installing github desktop containing a bash under windows is a starting stick but no solution. Try installing Virtualbox and setup e.g. debian build environment there. That is much easier. You can then share your code dirrctory via samba to windows and use android studio remotely on the files.
It’s a convoluted process. You need to run the bash script manually once, and you need to make sure you have windows python on the path rather than cygwin python.
I have installed Python 3.7 for Windows, set Path environment but there were some errors :
w:\Syncthing\syncthing-android>W:\cygwin64\bin\bash.exe./syncthing/build-syncthing.bash./syncthing/build-syncthing.bash: line 2: $’\r’: command not found: invalid optiond-syncthing.bash: line 3: set: -set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [–] [arg …]./syncthing/build-syncthing.bash: line 4: $’\r’: command not found./syncthing/build-syncthing.bash: line 29: syntax error near unexpected token $** **'do\r''** **./syncthing/build-syncthing.bash: line 29:for ANDROID_ARCH in arm x86 arm64; d’
I have used bash.exe from a cygwin bin directory. How to run this bash-script under cygwin terminal (c:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -) ? What command I must use ?
Please help !!!
[new label] v0.14.49-rc.4 -> v0.14.49-rc.4
Starting build for arm
Can not build NDK with Python provided by an unsupported system: CYGWIN_NT-6.3
Please make sure that python is available on the Internet (Windows / Linux / Darwin)
I have deinstalled the Python from the Windows system, but the error does not disappear :
Cannot build NDK with Python provided by an unsupported system: CYGWIN_NT-6.3
Please make sure that python that is available on the path is native to your host platform (Windows/Linux/Darwin)
You don’t needto uninstall python from windows, you need to make sure that we do not pick up the cygwin python, but pick up windows python instead, which I’ve explained how to do.
SyntaxError: invalid syntax
Cannot build NDK with Python provided by an unsupported system:
Please make sure that python that is available on the path is native to your host platform (Windows/Linux/Darwin)
Are there neсessary to use some old versions of Python, not 3.7 ?