Mac上Android studio环境搭建

下载
http://developer.android.com/sdk/index.html


  • android-studio-ide-141.1980579-mac.dmg
  • android-sdk_r24.3.3-macosx.zip
安装
(预先安装好JDK,我用的是jdk1.7.0_76)
点击android-studio-ide-141.1980579-mac.dmg,安装Android Studio。安装完毕后,先不启动Android Studio。 Finder-》应用程序-》右键Android Studio-》显示包内容-》Contents-》bin 编辑 idea.properties文件,在最后一行加上“ disable.android.first.run=true”
解压sdk到任意目录。
配置
启动Android Studio,在Welcome to Android Studio页面, Configure-》Project Defaults-》Project Structure配置SDK路径
SDK Manager配置 在Setting的Others部分,勾选Force https://...sources to be fetched using http://...

然后创建应用就好了。

最后,创建应用后有可能出现下面问题
Error:Failed to find: com.android.support:appcompat-v7:22.+
【Mac上Android studio环境搭建】 Install Repository and sync project
Open File
Open in Project Structure dialog

我的解决方式是: Android SDK Manager中 安装 Extras目录下的 Android Support Repository和 Android Support Library

    推荐阅读