Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RidaRidss/01120ae0ec5f1dbc716a777700df2bbb to your computer and use it in GitHub Desktop.
Save RidaRidss/01120ae0ec5f1dbc716a777700df2bbb to your computer and use it in GitHub Desktop.
1. download android studio via site

 2. copy android studio from download directory to the path usr using terminal  in ubuntu (while we are using the permission mode to copy in usr directory bu adding -R in this command )

     sudo cp -R android-studio /usr/ 

 3. Go to the path in android studio bin folder

     cd /usr/android-studio/bin/

                OR

note : skip step 1,2,3 and follow below 3 commands to install android studio using ubuntu terminal

    a. sudo add-apt-repository ppa:maarten-fonville/android-studio

    b. sudo apt update

    c. sudo apt install android-studio
    
    d. open this path in terminal then continue to step 4
    
        /opt/android-studio/bin
        
        
 4. install the file 

     ./studio.sh 

note : After Installation if get an error :

Unable to run mksdcard SDK tool

Run the Process Below :

      1. Install Yum

        sudo apt-get install yum*

      2.  Run

        sudo yum install compat-libstdc++-296.i686 compat-libstdc++-33.i686 ncurses-libs.i686 compat-libstdc++-33.x86_64
      
      3. Finish
      
      
  5.  Make Emulator On Android Studio

  6. Set Android Home path in system

      First open .bashrc file which is exist in Home folder in your system

        1. 

          [

          Open Home Folder , press Ctrl+h then .bashrc will be enable in the folder.

          ]

                                      OR
          [

          By using terminal , Run below command , you will be enable the file

              sudo gedit ~/.bashrc

          ]

        2. paste below paths in this file on the very top of the code

           i) export ANDROID_HOME=/home/username/Android/Sdk

           ii) export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

note : If HAXM is not available after installation , try this process :

Change BIOS setting

restart PC and press F10
=> Security => System Security => Virtualization Technology => Enable 
=> Security => System Security => Virtualization Technology Direction => Enable
press F10 for save setting and restart PC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment