Feel Android Studio(1)Install and Update Android Studio

本文档详细介绍了如何准备Git环境、解决GitHub上的fork问题、配置Android Studio的SDK路径及安装最新Gradle的方法。此外,还提供了从Eclipse导入项目的步骤,并解决了Android Studio更新后出现的错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
>git config --list
>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.
>git config --global --unset remote.origin.url


>git remote -help

check all the remote URLs
>git remote -v

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

delete the ones I did not want to keep
>git remote remove origin

Prepare to idea
>mvn idea:idea

2. Set up Android Studio
Setting the SDK path
select the project ---> right click ---> Platform Settings ---> SDKs ----> '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] ----> 
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.youkuaiyun.com/tangren03/article/details/8948037

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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值