How to configure the Android development environment in Ubuntu

Source: Internet
Author: User

I changed Ubuntu decisively. Ubuntu has poor performance and cannot set shadows...

1. Install Android Studio (1) download the Android Studio development environment

: Http://developer.android.com/sdk/installing/studio.html, Windows and Linux 32-bit and 64-bit;

-- Windows: https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-windows.exe.

-- Linux: https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-linux.tgz.

-- Mac OS: https://dl.google.com/android/studio/install/0.4.2/android-studio-bundle-133.970939-mac.dmg.

Install jdk: You must install the jdk of Oracle to start Android Studio;

Install and start Android Studio: Decompress Android Studio to the directory, execute the studio. sh file in the bin directory, and start Android Studio;

After entering the directory, you will be prompted that some files in the bin directory do not have permissions: modify the permissions of the execution file and sh file;

-- Modification result:

Www.bkjia.com :~ /Android-studio/bin $ ll
Total usage 132
Drwx ------ 2 octopus 4096 January 18 14:38 ./
Drwx ------ 7 octopus 4096 January 18 14:38 ../
-Rw ------- 1 octopus 136 January 9 09:22 appletviewer. policy
-Rwx ------ 1 octopus 22791 09:22 fsnotifier *
-Rwx ------ 1 octopus 29155 09:22 fsnotifier64 *
-Rw ------- 1 octopus 4176 January 9 09:22 idea.png
-Rw ------- 1 octopus 6870 January 9 09:23 idea. properties
-Rwx ------ 1 octopus 278 January 9 09:22 inspect. sh *
-Rw ------- 1 octopus 8531 09:22 libbreakgen64.so
-Rw ------- 1 octopus 6807 09:22 libbreakgen. so
-Rw ------- 1 octopus 2275 January 9 09:22 log. xml
-Rw ------- 1 octopus 282 January 9 09:22 studio64.vmoptions
-Rwx ------ 1 octopus 5630 January 9 09:22 studio. sh *
-Rw ------- 1 octopus 290 January 9 09:22 studio. vmoptions
-Rwx ------ 1 octopus 4049 January 9 09:22 update_studio.sh *

(2) download the SDK

Download SDK: Go to Android Studio, go to Settings, and use SDK Manager to download the SDK;

If the refresh fails, it indicates the firewall has been refreshed;

(3) Configure gradle

Configure gradle: when creating a project for the first time, you need to download gradle. After the download, you can enter the familiar interface for development;

-- Manual download: online download time is particularly long, provides a gradle-1.9-all.zip package;

--: Http://pan.baidu.com/s/1jGgGaTS.

-- Configuration process: Decompress gradle-1.9-all.zip to the android-studio/plugins/gradle directory;

-- Copy the zip file: copy the zip file to the/home/octopus/. gradle/wrapper/dists directory, that is ~ /. Gradle/wrapper/dists directory;

-- Configure the environment variable: configure the bin directory of gradle to path;

Export JAVA_HOME =/usr/lib/jvm/jdk1.7.0 _ 51
Export JRE_HOME =$ {JAVA_HOME}/jre
Export CLASSPATH =. :$ {JAVA_HOME}/lib :$ {JRE_HOME}/lib
Export PATH =$ {JAVA_HOME}/bin: $ PATH:/home/octopus/android-studio/plugins/gradle/bin

-- Verify: Disable the terminal. When you enable a terminal, run the gradle-v command;

Www.bkjia.com :~ $ Gradle-v

------------------------------------------------------------
Gradle 1.9
------------------------------------------------------------

Build time: 2013-11-19 08:20:02 UTC
Build number: none
Revision: 7970ec3503b4f5767ee1c1c69f8b4186c4763e3d

Groovy: 1.8.6
Ant: Apache Ant (TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0 _ 51 (Oracle Corporation 24.51-b03)
OS: Linux 3.11.0-12-generic i386

(4) run Android Studio

Enable Android Studio:

-- Run the studio. sh command: Use the command

Www.bkjia.com :~ $/Home/octopus/android-studio/bin/studio. sh

-- Welcome page:

 

-- Enter the configuration page:


 

 

(5) Configure GitHub

 

Click the Settings icon to go to the Settings page:

-- Setting icon:

 

Select Version Control-> GitHub on the left:

 

Enter the GitHub domain name, account, password, and the corresponding location on the right, and test to check whether the connection is successful:


 

(6) configure the font

 

Route configuration: Settings-> Editor-> Color & Fonts-> Font;


 

Configuration content:

 

Android Studio details: click here
Android Studio: click here

Android Studio cannot be started. Android Studio gradle cannot be downloaded.

Explore Android Studio and Some Problems and Solutions

Full process of installing Android Studio on Ubuntu 12.04 (64-bit)

Early adopters of Android Studio v0.1

Android Studio tutorial

Android Studio Development Guide

How to solve the problem that Android Studio sets the topic and does not support Chinese Characters

Android Studio download and installation and solutions that cannot be opened

  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.