Spaces:
Sleeping
Sleeping
File size: 835 Bytes
9cbb36f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/bin/bash
# Check if Android SDK is already installed
if [ -d "$HOME/Android/Sdk" ]; then
echo "Android SDK is already installed"
else
# Download the latest version of the Android SDK
echo "Downloading Android SDK..."
wget https://dl.google.com/android/repository/commandlinetools-latest.zip
# Unzip the Android SDK
echo "Unzipping Android SDK..."
unzip commandlinetools-latest.zip
# Move the Android SDK to the user's home directory
echo "Moving Android SDK to user's home directory..."
mv commandlinetools-latest $HOME/Android/Sdk
fi
# Update the bashrc file
echo "Updating bashrc file..."
echo "export PATH=$HOME/Android/Sdk/tools:$HOME/Android/Sdk/platform-tools" >> ~/.bashrc
# Reload the bashrc file
source ~/.bashrc
# Install the latest version of Flutter
echo "Installing Flutter..."
flutter doctor
|