Hi there,
has anyone already put together a working setup script that will install everything needed for Android (Kotlin) development in ChatGPT Codex?
I tried some things but because the terminal is not really “interactive” it is hard to debug.
Hi there,
has anyone already put together a working setup script that will install everything needed for Android (Kotlin) development in ChatGPT Codex?
I tried some things but because the terminal is not really “interactive” it is hard to debug.
Set environment variable:
ANDROID_HOME
to /usr/lib/android-sdk
And use the following setup script:
echo "Getting Android Studio"
wget -O android-commandlinetools.zip https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip
echo "Unpacking Android Studio"
unzip android-commandlinetools.zip -d /usr/lib/android-sdk
echo "Updating sdkmanager"
/usr/lib/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=/usr/lib/android-sdk/ --update
echo "Installing Android SDK"
bash -c 'yes | /usr/lib/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=/usr/lib/android-sdk/ "platforms;android-35"'
echo "Git Submodule Init"
git submodule update --init --recursive
Note: It seems the bash -c '...'
is necessary when installing the Android SDK with sdkmanager
, otherwise I always got an error that indicated a broken pipe, probably from the way the setup script is executed in the environment.