Install android studio in ubuntu

Install android studio in ubuntu

  • guide you through the process of installing Android Studio on Ubuntu. Please follow these steps:

    1. Download Android Studio:

    2. Extract the downloaded file:

      • Open a terminal and navigate to the directory where you downloaded Android Studio.
      • Extract the archive using the following command:
        bash
    • tar -xvzf android-studio-*.tar.gz
  • Move Android Studio to a suitable location:

    • Move the extracted folder to a location where you want to install Android Studio. For example:
      bash
    • sudo mv android-studio /opt
  • Set up environment variables:

    • Open your ~/.bashrc or ~/.zshrc file using a text editor (e.g., nano, vim, or gedit).
    • Add the following lines at the end of the file:
      bash
  • export ANDROID_HOME=$HOME/Android/Sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools
  • Save and close the file.
  • Run the following command to apply the changes:
    bash
    • source ~/.bashrc
  • Install dependencies:

    • Android Studio requires some additional dependencies. Run the following command to install them:
      bash
    • sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386
  • Start Android Studio:

    • Navigate to the Android Studio bin directory and run the studio.sh script:
      bash
    • cd /opt/android-studio/bin ./studio.sh
    • Follow the on-screen instructions to complete the installation.
  • Create a desktop entry:

    • To create a desktop entry for Android Studio, you can use the following commands:
      bash
    • echo -e "[Desktop Entry]\nName=Android Studio\nComment=Android Studio IDE\nExec=/opt/android-studio/bin/studio.sh\nIcon=/opt/android-studio/bin/studio.png\nTerminal=false\nType=Application\nCategories=Development;IDE;Java;" | sudo tee /usr/share/applications/android-studio.desktop
  • Run Android Studio:

    • You can now launch Android Studio from the application menu or by running the following command in the terminal:
      bash
  • android-studio

 

Comments

Popular posts from this blog

Convert binary to decimal in c using built in function

Install nodeJs in linux

DFS in Complete Tree