Installing android studio fedora

Installing android studio fedora

Copy raw contents

Copy raw contents

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 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 (see quick-launch_via_Android_Studio.png)
    • 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

Источник

How to install Android Studio on Fedora 30?

Fedora is a fairly popular Linux distribution. Many users highlight its speed and functionality to be taken into account as a reference. So many developers are interested in it as the main system in which to do their daily work. And there are many kinds of developers from web focus to mobile programming where iOS and Android dominate the market. In this sense, Android has a special IDE called Android Studio. So, in this post you will learn how to install Android Studio on Fedora 30.

Android is the world’s most popular mobile operating system and is present in hundreds of models. In addition, many major brands such as Samsung bet strongly on it. So Android has an IDE that is up to the system in Android Studio.

Android Studio is the official Android IDE. It is based on IntelliJ IDEA. Android Studio offers even more features that enhance your productivity when building Android apps, such as:

  • A flexible Gradle-based build system.
  • A fast and feature-rich emulator.
  • A unified environment where you can develop for all Android devices.
  • Instant Run to push changes to your running app without building a new APK.
  • Code templates and GitHub integration to help you build common app features and import sample code.
  • Extensive testing tools and frameworks.

So, let us install Android Studio on Fedora 30.

Install Android Studio on Fedora 30

First of all, go to the Android Studio website. Then download the Linux version. The website recognizes which system you are using. So just click on the Download Android Studio button.

1.- Android Studio website

After you accept the license terms, the download will begin. It weighs 1 Gb so if you have a slow connection, it will take a while.

Читайте также:  Последняя версия касперского для андроид

Once downloaded, it is necessary to install some dependencies. Open the terminal and type the following.

2.- Install some required libraries

After that, decompress the downloaded file in /opt/.

Obviously, be careful with the path and name of the downloaded file.

Then, run the wizard.

Now, you will see the wizard.

3.- Android studio setup wizard

Then, choose the type of the installation.

4.- Install type

After that, select the theme. I like the dark theme, but select what you prefer.

5.- Select UI theme

Next, you will see the summary.

6.- summary

Then, the installation will begin. The wizard will download other required components. Be patience.

7.- Installing Android Studio on Fedora

The process will take time. Then, you can start a new project.

8.- Choose the type of project

The next step is to configure the project.

9.- Configure the project

Now you can start to do fantastic Android applications.

10.- Android Studio on Fedora 30

Conclusion

Android Studio is an IDE for developing Android applications. Installing it is not at all complex, however, there are some dependencies that should be taken into account to avoid problems. In addition, it is recommended to have a fairly modern computer because it is somewhat heavy.

Are you an Android developer? Have you used Android Studio? Let us know in the comments.

Источник

HOWTO Setup Android Development

Contents

Abstract

This page should provide «how-to» document about using Fedora Linux for developing applications for Android platform.

This document will cover requirements, steps how to go from source code till final application and how to use Android Emulator for testing of application.

Target Fedora version

Requirements

Android Emulator

  • Eclipse IDE (3.5 and higher is needed because of ADT plugin dependency on Equinox P2) can be installed using DNF:

Download SDK from page

Install ADT plugin for Eclipse

    • Start Eclipse, then select Help > Install new software.
    • Click on the Available Software site hyperlink.
    • In Available software sites dialog, click Add.
    • In the Add Site dialog that appears, enter a name for the remote site (for example «Eclipse Update») in the «Name» field. In the Location field, enter one of these URLs, depending on your version of Eclipse. For Eclipse version 3.5 use:

or for Eclipse version 3.6 use:

For Eclipse version 3.7 (Fedora 16 and current Rawhide (as of Oct. 10, 2011)), use:

For Eclipse version 4.2 (Fedora 17 and current Rawhide (as of Jun. 6, 2012)), use:

For Eclipse version 4.3 (Fedora 19 and current Rawhide (as of Jun. 5, 2013)), use:

For Eclipse version 4.4 (Fedora 21 and current Rawhide (as of March 5, 2015)), use:

If you’re unsure which version of Eclipse you are using, check it at Help > About Eclipse.

This will add dependency which are required for ADT plugin.

    • Again click on Add button and enter a name for the another remote site (for example, «Android Plugin») in the «Name» field. In the «Location» field, enter this URL:
Читайте также:  Повторяет за голосом андроид

Note: If you have trouble acquiring the plugin, you can try using «http» in the URL, instead of «https» (https is preferred for security reasons).Click OK.

    • Click on each of the added sites and click Reload
    • Back in the Available Software view, next to «Work with:», you should now see «Android Plugin» in the drop down list, select it. In the box below, you will see «Developer Tools» added to the list. Select the checkbox next to Developer Tools, this will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
    • In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
    • Restart Eclipse.

Install Android SDK

  • Download the SDK from [1]
  • Unpack it in your home directory, then rename it to

/AndroidSDK
Add into path environment variable

/AndroidSDK in .bash_profile file in your home directory.
For example:

  • Logout and login back to apply path change

Android Emulator

32 bit packages

Install in Fedora 22 and later versions using DNF:

Or with YUM in Fedora 21 and earlier versions:

AVD device

/AndroidSDK directory and run tools/android to configure and create your first Android Virtual Device.

  • Go to «Available Packages», select components for just those versions of Android you want to work with. For example:
    • SDK Platform Android 2.1
    • Documentation for Android SDK
  • (SDK version r_08) For the adb tool, make sure you also select:
    • Platform Tools
  • Click on «Install selected», then click on «accept all» and confirm with clicking on «Install». This will start component installation, when it will be done, click on close. When this will be done, we could proceed with creation of AVD device itself.
  • Go to «Virtual Devices», Click on «New», this will open screen where you need to specify SD card size (I will use 62MiB), name of device (I will use «android_dev1», target (Android 2.1, if you want to develop for different target, you need to go to step 2 and install SDK platform for different version).
  • Now click on «Create AVD» which will create Android Virtual Device.
  • Running Emulator

    Now we have created Android Virtual Device and we should start it, however, due to issues in AndroidSDK with sound, we will need to run it from command line

    And this will start emulator for us.

    Hello Fedora

    Configure Android in Eclipse

    1. Go to Window -> Preferences, click on Android and set SDK location to directory. (for example /home/user/AndroidSDK) and click on Apply.
    2. Click on apply to reload available targets
    3. choose target android SDK
    4. click on OK

    Create a New Android Project

    After you’ve created an AVD, the next step is to start a new Android project in Eclipse.

    1. From Eclipse, select File > New > Project. If the ADT Plugin for Eclipse has been successfully installed, the resulting dialog should have a folder labeled «Android» which should contain «Android Project». (After you create one or more Android projects, an entry for «Android XML File» will also be available.)
    2. Select «Android Project» and click Next.
    3. On next screen type Project Name («HelloFedora»), Application name (Hello, Fedora), package name (com.example.hellofedora) which represent your namespace and name of activity in «Create Activity» box (HelloFedora). Choose target (if you have multiple targets) and click on «Finish». This will create project for you.
    Читайте также:  Viber mod для андроид

    Development and Execution

    1. open HelloFedora.java and paste there example code from Hello Fedora Code section.
    2. click on windows -> preferences. In new window, open Android -> Launch and into «Options» text box insert «-noaudio»
    3. open separate console, cd

    /AndroidSDK/tools and execute ./emulator -noaudio @android_dev1 to start emulator. Wait for start of emulator (it could take several minutes)

  • in eclipse, click on «run» and it will deploy application into Android Virtual Device.
  • Hello Fedora Code

    Compiling Android from Source

    Since Android is open source software, we can compile the platform ourselves on our Fedora machines. You need to have at least 6GB of disk space free to build Android.

    • Make sure you have Java installed (Java
    • If your device is not in the ‘lunch’ list, it’s because there is no official open source device config for your particular device. For example, at this point in time, the only device configs that come with the source trees, are the G1 (dream), MyTouch (sapphire), Nexus One (passion), and Nexus S (crespo). This is because they are directly related with Google and therefore just as open source as the rest of the platform.
    • If none of these are your Android device, luckily for us, there are open source developers that work on creating these for various devices. What you want to do is obtain the configuration repo, and put it in

    /android/source/device. The easiest way to do this is to use ‘git’ (provided by the «Development Tools» dnf|yum group. Git can be installed with DNF by command dnf install git ). You can search http://github.com to see if anyone has started working on a config for your specific device.

  • Of course to install your finished build, your Android device must allow root access with a custom recovery image installed. It should also be noted that by compiling Android from the instructions above (building from the official Android repositories), the resulting build will not have native root access, nor will it have the official Google applications (Gmail, YouTube, Market, etc., these can be installed afterward). To build your own development build with superuser access enabled, some more configuration to the source would be needed and is out of the scope of this tutorial. You could also build from alternate Android source trees, such as CyanogenMod (http://github.com/CyanogenMod/android) (if your device is supported by their project).
  • —Hpejakle 11:25, 2 April 2010 (UTC)

    Copyright © 2021 Red Hat, Inc. and others. All Rights Reserved. For comments or queries, please contact us.

    The Fedora Project is maintained and driven by the community and sponsored by Red Hat. This is a community maintained site. Red Hat is not responsible for content.

    Источник

    Оцените статью