Install Android SDK

  • Download Android command line tools

    1. Visit to Android Developer website.
    2. Download the SDK tools package for Linux.

      android-sdk_r24.4.1-linux.tgz

      cd /opt/Android
      wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
      
  • Unzip it to destination folder

    $ tar zxvf android-sdk_r24.4.1-linux.tgz
    

    Then rename the folder from android-sdk-linux to sdk.

Entry to sdk/tools, and open the android script file with excute.

After start the Android SDK Manager, install below things:

  1. Android SDK Tools
  2. Android SDK Platform-tools
  3. Android SDK Build-tools
  4. SDK Platform
  5. (optional) install what you need in Extras folder
  • Seting CLASSPATH

    1. Use Files tool to open ~/.bashrc file.

      cd ~/

    2. Add the below lines at end of the file.
      export PATH=${PATH}:/opt/Android/sdk/tools
      export PATH=${PATH}:/opt/Android/sdk/platform-tools
      
  • Restart Ubuntu

    sudo shutdown -r now
    

    How to build Android app with Jenkins

results matching ""

    No results matching ""