How to Get An Android Development Environment Set Up in Fedora Linux

How to Get An Android Development Environment Set Up in Fedora Linux

How to Get An Android Development Environment Set Up in Fedora Linux

MUO

How to Get An Android Development Environment Set Up in Fedora Linux

in

Install Eclipse

The first step is to download Eclipse, the best IDE for Android development. In Fedora, you can easily do this by running the command sudo yum install @eclipse eclipse-jdt . This will actually install the "Fedora Eclipse" package group which includes all necessary Eclipse packages as well as a few others that are related to Fedora development and Java support. Just let all this install, and you're off to a good start. If you're new to Eclipse, then don't forget to check out the for it.

Install Android Plugin

Once this completes, you'll need to install the Android Plugin for Eclipse. To do this, open Eclipse and click on Help --> Install New Software. Then click Add, at the top right of that window. Type in Android Plugin for the name and https://dl-ssl.google.com/android/eclipse/ for the address. Once this is done, click on the Available Software Sites hyperlink below the Add button, then highlight the Android Plugin source and click on Reload. Now exit this window, and choose Android Plugin from the "Work with" dropdown menu. Choose the developer tools option that you see here. Proceed to install these tools, accepting licenses agreements when asked.

Download SDK

You have the Android Plugin installed now, but you still need the SDK that the plugin connects to. The SDK is a big package of code that allows you to test out Android apps, and it also provides other useful tools (for a while, the ). You can download the Android SDK from , and be sure to select the appropriate SDK for your architecture (32-bit or 64-bit). This download is almost 200 mb, so give it a little time. Once it completes, unzip it to your home folder (so that the path reads /home//AndroidSDK). The last thing you need to do for the SDK is to open up your .bash_profile file (make sure that your file browser is showing hidden files, as all hidden files have filenames that start with a period), and add the following text to the bottom of the file:
PATH=:/AndroidSDK:/AndroidSDK/tools
PATH

PATH=:/AndroidSDK/platform-tools
PATH
What this code does is lets the SDK function correctly, by allowing those tools to be accessed by their name rather than a path – "abd" instead of "/home//AndroidSDK/sdk/adb" or the like. Once you've saved that modification, you have to log out and back in (or simply restart your computer) for the changes to go into effect.

Configure Your Android Virtual Device

Think you're done? Not quite yet – you still have to create a virtual Android device that will emulate the app(s) you are developing. You can do this by opening a terminal, going into the sdk folder using the command AndroidSDK/sdk , and then by running the command tools/android . Here you'll need to choose which version(s) of Android you're targeting – remember that an older target would make the app more compatible, but a newer target will benefit from recent advancements made in Android. You'll need to select the categories: SDK Platform Android 4.0 (replace 4.0 with all versions you're interested in installing) Documentation for Android SDK Platform Tools When installing, be sure to accept all licenses so everything actually installs. Once it completes, choose Tools --> Manage AVDs, and then click on New. Name it something, choose a device to emulate (the Nexus 4 is a good idea if you're developing for phones), and choose all other options you'd like to have.

Start Coding

You've finally set everything up! You can now go to Eclipse and create a new Android project and start developing your next app. We have plenty of articles at MakeUseOf to on , now that you have a working development environment ready to go. Once you're ready to test out some code, just hit the Run button and the emulator will appear with the app running! If it doesn't appear at first, just give it some time – it took almost half a minute to appear for me, even though I have an SSD! What Android development tips do you have for fellow beginners? Let us know in the comments, okay?

Share:
0 comments

Comments (0)

Leave a Comment

Minimum 10 characters required

* All fields are required. Comments are moderated before appearing.

No comments yet. Be the first to comment!