Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save dev-ext/150143d12ea6fb92508c9325c6fe4b45 to your computer and use it in GitHub Desktop.

Select an option

Save dev-ext/150143d12ea6fb92508c9325c6fe4b45 to your computer and use it in GitHub Desktop.

Revisions

  1. Prosenjit Manna revised this gist May 8, 2017. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion Ionic 2 - Android setup for Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,9 @@
    export PATH=${PATH}:~/Android/Sdk/tools
    export PATH=${PATH}:~/Android/Sdk/platform-tools
    export PATH=/home/prosenjit/android-studio/gradle/gradle-3.2/bin:$PATH
    export PATH=/home/prosenjit/android-studio/gradle/gradle-3.2/bin:$PATH

    ## make sure permission for sdk
    ## sudo chmod -R 777 ~/Android

    ## Make sure permission for platform
    ## sudo chmod -R 777 /platform/android
  2. Prosenjit Manna revised this gist May 5, 2017. 1 changed file with 1 addition and 51 deletions.
    52 changes: 1 addition & 51 deletions Ionic 2 - Android setup for Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -1,53 +1,3 @@
    # Android SDK setup

    ## Install Java

    ```bash
    sudo apt-get update
    sudo dpkg --add-architecture i386
    sudo apt-get install libbz2-1.0:i386
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
    sudo apt-get install openjdk-8-jdk openjdk-8-jre
    ```

    Add JAVA_HOME to path via ~/.bashrc

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



    ## Install Android Studio
    Download ZIP archive for Linux from: https://developer.android.com/studio/install.html
    1. move the .zip to /opt
    2. extract it
    3. chown the folder to your name
    4. chmod 777 studio.sh and run it for the installer

    Now the android sdk is installed to ~/Android/Sdk
    It's preferred to add ~/Android/Sdk folders to your path:

    ```bash
    export PATH=${PATH}:~/Android/Sdk/tools
    export PATH=${PATH}:~/Android/Sdk/platform-tools
    ```

    Run `android`, install the images (atom, etc) and then navigate to Tools -> Manage AVDs and create a new image
    Make sure to install the android-23 version and confirm it exists in ~/Android/Sdk/platforms/




    # Ionic setup

    ## Pre-requisties
    * Node.js v6
    * npm v3

    # Install latest cordova and ionic from npm

    ```bash
    npm install -g cordova ionic
    ```

    export PATH=/home/prosenjit/android-studio/gradle/gradle-3.2/bin:$PATH
  3. @lirantal lirantal revised this gist Oct 7, 2016. 1 changed file with 12 additions and 1 deletion.
    13 changes: 12 additions & 1 deletion Ionic 2 - Android setup for Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,21 @@

    ## Install Java

    ```bash
    sudo apt-get update
    sudo dpkg --add-architecture i386
    sudo apt-get install libbz2-1.0:i386
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
    sudo apt-get install openjdk-9-jdk openjdk-9-jre
    sudo apt-get install openjdk-8-jdk openjdk-8-jre
    ```

    Add JAVA_HOME to path via ~/.bashrc

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



    ## Install Android Studio
    Download ZIP archive for Linux from: https://developer.android.com/studio/install.html
    @@ -24,6 +34,7 @@ export PATH=${PATH}:~/Android/Sdk/platform-tools
    ```

    Run `android`, install the images (atom, etc) and then navigate to Tools -> Manage AVDs and create a new image
    Make sure to install the android-23 version and confirm it exists in ~/Android/Sdk/platforms/



  4. @lirantal lirantal created this gist Oct 7, 2016.
    42 changes: 42 additions & 0 deletions Ionic 2 - Android setup for Ubuntu 16.04
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,42 @@
    # Android SDK setup

    ## Install Java

    sudo apt-get update
    sudo dpkg --add-architecture i386
    sudo apt-get install libbz2-1.0:i386
    sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
    sudo apt-get install openjdk-9-jdk openjdk-9-jre

    ## Install Android Studio
    Download ZIP archive for Linux from: https://developer.android.com/studio/install.html
    1. move the .zip to /opt
    2. extract it
    3. chown the folder to your name
    4. chmod 777 studio.sh and run it for the installer

    Now the android sdk is installed to ~/Android/Sdk
    It's preferred to add ~/Android/Sdk folders to your path:

    ```bash
    export PATH=${PATH}:~/Android/Sdk/tools
    export PATH=${PATH}:~/Android/Sdk/platform-tools
    ```

    Run `android`, install the images (atom, etc) and then navigate to Tools -> Manage AVDs and create a new image




    # Ionic setup

    ## Pre-requisties
    * Node.js v6
    * npm v3

    # Install latest cordova and ionic from npm

    ```bash
    npm install -g cordova ionic
    ```