How to set up Android Studio on Fedora systems

Datetime:2016-08-22 23:18:56          Topic: Android Studio           Share

Android Studio Development on Windows, Mac OS X and Linux

Android Studiois the Official IDE for Android Development on modern personal computers. Android Studio provides the fastest tools for building apps on every type of Android device. World-class code editing, debugging, performance tooling, a flexible build system, and an instant build/deploy system all allow you to focus on building unique and high quality apps. Based on JetBrains IntelliJ IDEA software, Android Studio is designed specifically for Android development. It’s available for Windows, Mac OS X and Linux, and replaced Eclipse as Google’s primary IDE for native Android application development.

More infos about Android Studio is available on the wikipedia .

How to configure Android Studio on Fedora systems

Basically, you can download Android Studio from the Official WebSite and start it on your Linux system. For a smooth experience on Fedora , I suggest you to do some necessary steps.

  • If you run a 64 bit system, in a terminal window do this

    sudo dnf install zlib-devel.i686 ncurses-devel.i686 ant

  • Install libs for mksdcard SDK Tool

    sudo dnf install compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 glibc.i686 glibc-devel.i686 libstdc++.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

  • Install Java development tools

    sudo dnf install java-1.8.0-openjdk-devel.x86_64

  • Download the Android Studio package from Official WebSite and, just in case, add the SDK from http://developer.android.com/sdk/index.html

  • Extract the package (it’s ok also the Downloads folder) and relocate the Android Studio folder

    mv /home/yourUserName/Downloads/android-studio /opt

  • Make symbolic lynk for a quick launch

    • Using command line

      ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/asb

      exit

    • Using Android Studio

      • Run Andorid Studio with ./opt/android-studio/bin/studio.sh
      • Menu > Tools > Create Command-line Launcher…
        • Name: asb
        • Path: /usr/local/bin
      • Click OK
    • Using Alacarte (sudo dnf install alacarte)

      • New item under Programming
      • Browse to /opt/android-studio/bin/studio.sh
      • Browse icon to /opt/android-studio/bin/studio.png
  • Check Java environment

    echo $JAVA_HOME

    If it isn’t /usr/lib/jvm/default-java, type:

    export JAVA_HOME=/usr/lib/jvm/default-java

  • Run Android Studio and enjoy it

    • Typing asb in terminal
    • Using Android Studio icon in launcher

Some plus with Android Studio and Fedora

For the latest news, configurations and some plus on setting up an Android Studio Development environment on Fedora systems you can check my GitHub . If you need a more powerful and fast emulator for Android, you can see my post on How to install Genymotion emulator on Fedora . For now, it’s all.

Bye, bye!





About List