Date Tags android

IDE

我选择的是Android Studio, 从这里 http://tools.android.com/download/studio/canary 下载到最新的android studio ide,

解压后放置到/apps/ide/目录下。双击Android Studio打开, 此时如果系统下没安装java的话会弹出要求安装java6的对话框, 我选择用最新的java8,所以编辑

/apps/ide/Android\ Studio.app/Contents/Info.plist

  <key>JVMVersion</key>
  <!--
  <string>1.6*</string>
  -->
  <string>1.8*</string>

修改完成后再双击打开Android Studio就可以顺利打开了。

打开后有Welcome to Android Studio 对话框,此时SDK Manager是灰色的,不能点。 要先配置好Project Defaults才能进行SDK Manager的配置。

Android 开发依赖到android sdk, 所以要先安装SDK, 下载android-sdk_r23.0.2-macosx.zip, 解压到

/apps/dev/android-sdk-macosx

回到Android Studio的界面,

Quick Start -> Configure -> Project Defaults -> Project Structure

Android SDK location 选择到 /apps/dev/android-sdk-macosx,

JDK location 选择到 /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

然后下载gradle, gradle-2.1-all.zip, 安装 ~/.gradle

安装Intel HAXM, for intel image

/apps/dev/android-sdk-macosx/extras/intel/Hardware_Accelerated_Execution_Manager

Android Resource 下载路径

sdk tools

  • http://dl-ssl.google.com/android/repository/platform-tools_r21-macosx.zip

2.3.3 api10

  • http://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-10_r02.zip
  • http://dl.google.com/android/repository/google_apis-10_r02.zip

3.0 api11

  • http://dl-ssl.google.com/android/repository/android-3.0_r02-linux.zip
  • http://dl-ssl.google.com/android/repository/samples-3.0_r01-linux.zip
  • http://dl.google.com/android/repository/google_apis-11_r01.zip

4.0 api14

  • http://dl-ssl.google.com/android/repository/android-14_r04.zip
  • http://dl-ssl.google.com/android/repository/samples-14_r02.zip
  • http://dl-ssl.google.com/android/repository/sources-14_r01.zip
  • http://dl-ssl.google.com/android/repository/google_apis-14_r02.zip

4.2.2 api17

  • http://dl-ssl.google.com/android/repository/android-17_r03.zip
  • http://dl-ssl.google.com/android/repository/samples-17_r01.zip
  • http://dl-ssl.google.com/android/repository/sources-17_r01.zip
  • http://dl-ssl.google.com/android/repository/google_apis-17_r03.zip

4.4.2 api19:

  • http://dl-ssl.google.com/android/repository/android-19_r04.zip
  • http://dl-ssl.google.com/android/repository/samples-19_r06.zip
  • http://dl-ssl.google.com/android/repository/sources-19_r02.zip
  • http://dl-ssl.google.com/android/repository/google_apis-19_r09.zip
  • http://dl-ssl.google.com/android/repository/sys-img/x86/google_apis_x86-19_r09.zip

5.0 api21:

  • http://dl-ssl.google.com/android/repository/android-21_r01.zip
  • http://dl-ssl.google.com/android/repository/samples-21_r03.zip
  • http://dl-ssl.google.com/android/repository/sources-21_r01.zip
  • http://dl-ssl.google.com/android/repository/google_apis-21_r01.zip
  • http://dl-ssl.google.com/android/repository/sys-img/android/sysimg_x86-21_r01.zip
  • http://dl-ssl.google.com/android/repository/docs-21_r01.zip

extra:

  • http://dl-ssl.google.com/android/repository/support_r21.0.2.zip
  • http://dl-ssl.google.com/android/repository/android_m2repository_r09.zip
  • http://dl-ssl.google.com/android/repository/extras/intel/haxm-macosx_r05.zip

参考:

  • http://sofire.iteye.com/blog/1961552