1. Mac 搭建 Android 开发环境

1.1. 下载 android studio

https://developer.android.com/studio/install.html 需要翻墙

1.2. SDK

Android Studio > Preferences > Apperence & Behavior > System Setting > Android SDK

1.3. JDK

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

1.4. AVD (Android Virtual Device)

Unable to create a virtual device: Missing system image required for an AVD setup

Tools > Android > AVD Manager.

1.5. Genymotion

比 AVD 更快,占资源更少的模拟器

  • https://www.genymotion.com

  • 注册下载安装免费版

  • Android Studio > Preferences > Plugins > 搜索 genymotion > install
  • 安装 VirtualBox
  • 配置 VirtualBox > 偏好设置 > 网络 > 仅主机网络 > 右击 > 编辑: 除 IP 外,其它配置成和电脑一样
  • Genymotion > 添加设备
  • Genymotion > Settings > ADB > Use custom Android SDK tools : ~/Library/Android/sdk

重启 Android StudioGenymotion

1.6. CLI

命令行

$ cd ~/Library/Android/sdk/tools

1.7. Plugins

Android Studio > Preferences > Plugins > Browse Repositories

results matching ""

    No results matching ""