File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " android-sdk" ,
33 "id" : " android-sdk" ,
4- "version" : " 1.0.2 " ,
4+ "version" : " 1.0.3 " ,
55 "description" : " Setup android sdk in your development container" ,
66 "documentationURL" : " https://github.com/pnstack/codespace" ,
77 "licenseURL" : " https://github.com/pnstack/codespace/blob/main/LICENSE" ,
Original file line number Diff line number Diff line change 11wget https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip
22unzip commandlinetools-linux-9123335_latest.zip
33mv cmdline-tools latest
4- mkdir $HOME /.android
5- mkdir $HOME /.android/cmdline-tools
6- mv latest $HOME /.android/cmdline-tools
4+ mkdir /home /.android
5+ mkdir /home /.android/cmdline-tools
6+ mv latest /home /.android/cmdline-tools
77# Export the Android SDK path
88rm -f ./commandlinetools-linux-9123335_latest.zip
99
10- echo ' export ANDROID_HOME=$HOME /.android' >> ~ /.bashrc
10+ echo ' export ANDROID_HOME=/home /.android' >> ~ /.bashrc
1111echo ' export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin' >> ~ /.bashrc
1212echo ' export PATH=$PATH:$ANDROID_HOME/platform-tools' >> ~ /.bashrc
1313echo ' export PATH=$PATH:$ANDROID_HOME/tools' >> ~ /.bashrc
1414echo ' export PATH=$PATH:$ANDROID_HOME/tools/bin' >> ~ /.bashrc
1515echo ' export PATH=$PATH:$ANDROID_HOME/emulator' >> ~ /.bashrc
1616
17- yes | $ANDROID_HOME /cmdline-tools/latest/bin/sdkmanager " platform-tools" " platforms;android-33"
18- yes | $ANDROID_HOME /cmdline-tools/latest/bin/sdkmanager " build-tools;33.0.0"
19- yes | $ANDROID_HOME /cmdline-tools/latest/bin/sdkmanager " extras;android;m2repository"
20- yes | $ANDROID_HOME /cmdline-tools/latest/bin/sdkmanager --install " ndk;23.1.7779620"
17+ yes | /home/.android /cmdline-tools/latest/bin/sdkmanager " platform-tools" " platforms;android-33"
18+ yes | /home/.android /cmdline-tools/latest/bin/sdkmanager " build-tools;33.0.0"
19+ yes | /home/.android /cmdline-tools/latest/bin/sdkmanager " extras;android;m2repository"
20+ yes | /home/.android /cmdline-tools/latest/bin/sdkmanager --install " ndk;23.1.7779620"
You can’t perform that action at this time.
0 commit comments