Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FaikYY/b89c7d88c05cce013365af7b455d1690 to your computer and use it in GitHub Desktop.
Save FaikYY/b89c7d88c05cce013365af7b455d1690 to your computer and use it in GitHub Desktop.

Revisions

  1. FaikYY revised this gist Apr 15, 2021. 1 changed file with 1 addition and 1 deletion.
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ export PATH="$PATH:~/.flutter/flutter/bin"
    ## Android SDK

    ```bash
    wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip
    mkdir -p Android/Sdk
    unzip commandlinetools-linux-6200805_latest.zip -d Android/Sdk

  2. FaikYY revised this gist Apr 15, 2021. 1 changed file with 2 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -34,10 +34,10 @@ sdkmanager "system-images;android-30;google_apis_playstore;x86"
    sudo apt install gradle

    # to create a virtual machine
    flutter emulators --create androtest
    flutter emulators --create --name androtest

    # to run the virtual machine (eventhough we set the name as androtest its saving as flutter_emulator, dont know why??)
    flutter emulators --launch flutter_emulator
    flutter emulators --launch androtest

    # cd into flutter project and
    flutter run
  3. FaikYY renamed this gist Apr 14, 2021. 1 changed file with 0 additions and 0 deletions.
  4. FaikYY revised this gist Apr 14, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)
    # Install Flutter and Android Sdk (Virtual Machine) on Ubuntu 20.04LTS without Android Studio

    ## Install Java 8

    @@ -7,7 +7,7 @@ sudo apt install openjdk-8-jdk-headless
    ```
    ### Install the flutter package from the website
    ### from here https://flutter.dev/docs/get-started/install/linux
    ### extract it and renmae as .flutter to make it hidden (optional)
    ### extract it and rename as .flutter to make it hidden (optional)
    ### export the file in .bashrc or .zshrc
    export PATH="$PATH:~/.flutter/flutter/bin"

  5. FaikYY revised this gist Apr 14, 2021. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,10 @@
    ```bash
    sudo apt install openjdk-8-jdk-headless
    ```
    ## Install the flutter package from the website
    # from here https://flutter.dev/docs/get-started/install/linux
    # extract it and renmae as .flutter to make it hidden (optional)
    # export the file in .bashrc or .zshrc
    ### Install the flutter package from the website
    ### from here https://flutter.dev/docs/get-started/install/linux
    ### extract it and renmae as .flutter to make it hidden (optional)
    ### export the file in .bashrc or .zshrc
    export PATH="$PATH:~/.flutter/flutter/bin"


  6. FaikYY revised this gist Apr 14, 2021. 1 changed file with 18 additions and 2 deletions.
    20 changes: 18 additions & 2 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,12 @@
    ```bash
    sudo apt install openjdk-8-jdk-headless
    ```
    ## Install the flutter package from the website
    # from here https://flutter.dev/docs/get-started/install/linux
    # extract it and renmae as .flutter to make it hidden (optional)
    # export the file in .bashrc or .zshrc
    export PATH="$PATH:~/.flutter/flutter/bin"


    ## Android SDK

    @@ -22,11 +28,21 @@ sdkmanager --sdk_root=${ANDROID_HOME} "tools"

    sdkmanager --update
    sdkmanager --list
    sdkmanager "build-tools;28.0.3" "platform-tools" "platforms;android-28" "tools"
    sdkmanager "build-tools;30.0.3" "platform-tools" "platforms;android-30" "tools"
    sdkmanager --licenses

    sdkmanager "system-images;android-30;google_apis_playstore;x86"
    sudo apt install gradle

    # to create a virtual machine
    flutter emulators --create androtest

    # to run the virtual machine (eventhough we set the name as androtest its saving as flutter_emulator, dont know why??)
    flutter emulators --launch flutter_emulator

    # cd into flutter project and
    flutter run



    ````

  7. @steveclarke steveclarke revised this gist Dec 7, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Install Android SDK CLI (Work in Progress)
    # Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

    ## Install Java 8

  8. @steveclarke steveclarke revised this gist Sep 24, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,8 @@ sudo apt install openjdk-8-jdk-headless

    ```bash
    wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    unzip commandlinetools-linux-6200805_latest.zip -d Android
    mkdir -p Android/Sdk
    unzip commandlinetools-linux-6200805_latest.zip -d Android/Sdk

    export ANDROID_HOME=$HOME/Android/Sdk
    # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded
  9. @steveclarke steveclarke revised this gist Jun 16, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -12,10 +12,10 @@ sudo apt install openjdk-8-jdk-headless
    wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    unzip commandlinetools-linux-6200805_latest.zip -d Android

    export ANDROID_HOME=$HOME/Android
    export ANDROID_HOME=$HOME/Android/Sdk
    # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded
    # instead of the one from /emulator
    PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
    export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"

    sdkmanager --sdk_root=${ANDROID_HOME} "tools"

  10. @steveclarke steveclarke revised this gist May 10, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,9 @@ wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_lat
    unzip commandlinetools-linux-6200805_latest.zip -d Android

    export ANDROID_HOME=$HOME/Android
    PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"
    # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded
    # instead of the one from /emulator
    PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"

    sdkmanager --sdk_root=${ANDROID_HOME} "tools"

  11. @steveclarke steveclarke revised this gist May 10, 2020. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -31,4 +31,7 @@ Note: you can get an updated Android SDK link from https://developer.android.com

    Used a combinaton of these gists:
    https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0
    https://gist.github.com/jjvillavicencio/18feb09f0e93e017a861678bc638dcb0
    https://gist.github.com/jjvillavicencio/18feb09f0e93e017a861678bc638dcb0

    Background on the update to command line tools from android sdk
    https://stackoverflow.com/a/61176718
  12. @steveclarke steveclarke revised this gist May 10, 2020. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,15 @@ export ANDROID_HOME=$HOME/Android
    PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"

    sdkmanager --sdk_root=${ANDROID_HOME} "tools"

    sdkmanager --update
    sdkmanager --list
    sdkmanager "build-tools;28.0.3" "platform-tools" "platforms;android-28" "tools"
    sdkmanager --licenses

    sudo apt install gradle


    ````

    Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads
  13. @steveclarke steveclarke revised this gist May 10, 2020. 1 changed file with 10 additions and 3 deletions.
    13 changes: 10 additions & 3 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -8,10 +8,17 @@ sudo apt install openjdk-8-jdk-headless

    ## Android SDK

    ○ → wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads
    ```bash
    wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    unzip commandlinetools-linux-6200805_latest.zip -d Android

    export ANDROID_HOME=$HOME/Android
    PATH="$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH"

    ○ → sdkmanager --sdk_root=${ANDROID_HOME} "tools"
    sdkmanager --sdk_root=${ANDROID_HOME} "tools"
    ````

    Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads

    Used a combinaton of these gists:
    https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0
  14. @steveclarke steveclarke revised this gist May 10, 2020. 1 changed file with 8 additions and 19 deletions.
    27 changes: 8 additions & 19 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -1,29 +1,18 @@
    # Install Android SDK CLI (Work in Progress)

    ```bash
    sudo apt install android-sdk
    ```

    Installs to `/usr/lib/android-sdk`


    ## Install Java 8

    ```bash
    sudo apt install openjdk-8-jdk
    sudo apt install openjdk-8-jdk-headless
    ```

    Set default `java` and `javac` to v8
    ## Android SDK

    ```bash
    sudo update-alternatives --config java
    sudo update-alternatives --config javac
    ```

    Set `JAVA_HOME`. Add the following to `~/.bashrc`
    ○ → wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip
    Note: you can get an updated Android SDK link from https://developer.android.com/studio/#downloads

    ```bash
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ```
    ○ → sdkmanager --sdk_root=${ANDROID_HOME} "tools"

    https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0
    Used a combinaton of these gists:
    https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0
    https://gist.github.com/jjvillavicencio/18feb09f0e93e017a861678bc638dcb0
  15. @steveclarke steveclarke revised this gist May 9, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Install Android SDK CLI Ubuntu 20.04 WSL2.md
    Original file line number Diff line number Diff line change
    @@ -25,3 +25,5 @@ Set `JAVA_HOME`. Add the following to `~/.bashrc`
    ```bash
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ```

    https://gist.github.com/fedme/fd42caec2e5a7e93e12943376373b7d0
  16. @steveclarke steveclarke renamed this gist May 9, 2020. 1 changed file with 0 additions and 0 deletions.
  17. @steveclarke steveclarke revised this gist May 9, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install Android SDK CLI Ubuntu 20.04 WSL2
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Install Android SDK CLI
    # Install Android SDK CLI (Work in Progress)

    ```bash
    sudo apt install android-sdk
  18. @steveclarke steveclarke created this gist May 9, 2020.
    27 changes: 27 additions & 0 deletions Install Android SDK CLI Ubuntu 20.04 WSL2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    # Install Android SDK CLI

    ```bash
    sudo apt install android-sdk
    ```

    Installs to `/usr/lib/android-sdk`


    ## Install Java 8

    ```bash
    sudo apt install openjdk-8-jdk
    ```

    Set default `java` and `javac` to v8

    ```bash
    sudo update-alternatives --config java
    sudo update-alternatives --config javac
    ```

    Set `JAVA_HOME`. Add the following to `~/.bashrc`

    ```bash
    export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
    ```