---
title: "Feel Android Studio(1)Install and Update Android Studio"
author: "sillycat"
date: "2014-04-11T03:12:56Z"
tags: []
categories: ["移动开发"]
slug: "feel-android-studio-1-install-and-update-android-studio"
draft: false
lastmod: "2014-04-11T03:12:56Z"
id: 2043335
url: "https://sillycat.iteye.com/blog/2043335"
---

Feel Android Studio(1)Install and Update Android Studio

**1. Prepare the Git environment**  
First of all, I need to deal with the fork problem on github.com  
&gt;git config --list  
&gt;git config --global remote.origin.url=https://github.com/luohuazju/ProjectName.git

This is a wrong path, I will try to get rid of it.  
&gt;git config --global --unset remote.origin.url

&gt;git remote -help

check all the remote URLs  
&gt;git remote -v

&gt;git remote set-url origin https://github.com/luohuazju/ProjectName.git  
&gt;git remote set-url --push origin https://github.com/luohuazju/ProjectName  
&gt;git remote add luohuazju https://github.com/luohuazju/ProjectName

delete the ones I did not want to keep  
&gt;git remote remove origin

Prepare to idea  
&gt;mvn idea:idea

**2. Set up Android Studio**  
**Setting the SDK path**  
select the project ---&gt; right click ---&gt; Platform Settings ---&gt; SDKs ----&gt; 'Plus'

Open Android SDK Manager  
update all the tools there.

**3. Install the latest Gradle**  
..maybe, I do not need to do this time.  
http://sillycat.iteye.com/blog/1074642

**4. Import the Project from Eclipse**  
Update the eclipse plugin to latest version of 2.2.

Select the project we want to export and choose \[Android] ---- \[Generate Gradle build files]  
   
I do not know why. But not working.

So I plan to use maven.  
\[Edit Configuration] ----&gt;   
Working directory : /Users/carl/work/easy/EasyRestClientAndroid  
Command line: clean package android:deploy android:run

Or in the \[Edit Configuration] Part, we can directly use Android Application.

**5. Use and Update Android Studio**  
Download the tool from here  
http://developer.android.com/sdk/installing/studio.html

I have used Android Studio for a long time, I upgrade my studio to the latest recently and I get this error Message:

Please provide the path to the Android SDK  
if you do not have the Android SDK, you can obtain it from d.android.com  
select Android SDK /Users/carl/tool/android-sdk/macosx

This version of Android Studio may not work correctly without Android SDK Tool revision 22.6.2 or above. Current revision is 22.6.0.   
Please update your SDK Tools to the latest version.

**Solution:**  
Go to this URL http://developer.android.com/sdk/index.html#download

I got one file from here https://dl.google.com/android/adt/22.6.2/adt-bundle-mac-x86\_64-20140321.zip

Or the simplest way is to open the Android SDK Manager and update them there.

**References:**  
http://developer.android.com/sdk/installing/studio.html

Export Eclipse to Gradle  
http://blog.csdn.net/tangren03/article/details/8948037

Gradle  
http://sillycat.iteye.com/blog/1074642