安装JAVA SDK
下载地址:<a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151-zhs.html">http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151-zhs.html</a>
选择“接受许可协议”,然后下载Mac OS X x64的dmg。
<img src="http://upload-images.jianshu.io/upload_images/1840221-bfb11c901106e457.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
下载结束后双击安装。安装完成可用java -version命令在terminal查看
<img src="http://upload-images.jianshu.io/upload_images/1840221-45aa636e0d8a65c6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "400" alt="" align=center />
表示已安装完成。
但是Mac 10.11的系统上,可能还会提示你需要安装java se 6。这时你只需要修改一下/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Info.plist文件
<key>JVMCapabilities</key>
<array>
<string>JNI</string>
<string>BundledApp</string>
<string>WebStart</string>
<string>Applets</string>
<string>CommandLine</string>
</array>
修改JVMCapabilities,重启即可。
安装IntelliJ IDEA
下载地址:<a href="https://www.jetbrains.com/idea/download/">https://www.jetbrains.com/idea/download/</a>
下载android SDK
下载地址:<a href="http://developer.android.com/sdk/index.html">http://developer.android.com/sdk/index.html</a>
如下图配置进入configure配置sdk
<img src="http://upload-images.jianshu.io/upload_images/1840221-a2fe73287c6b4add.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
在SDKs添加
<img src="http://upload-images.jianshu.io/upload_images/1840221-4eb1e74f21bc518a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
安装Genymotion和VirtualBox
genymotion和virtualbox安装后,选择device下载,点击start开启模拟器。
<img src="http://upload-images.jianshu.io/upload_images/1840221-5e8955e1083ebe38.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
Genymotion插件
下载地址
<a href="https://www.jetbrains.com/idea/download/">https://www.jetbrains.com/idea/download/</a>
下载后在启动画面选择plugin进入
<img src="http://upload-images.jianshu.io/upload_images/1840221-552d27b7ef54bddf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
点击install plugin from disk安装
<img src="http://upload-images.jianshu.io/upload_images/1840221-cbb405321036b059.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
安装后会在ide里面看到一个红色的按钮,就是genymotion插件,选择后点start即可开启。
<img src="http://upload-images.jianshu.io/upload_images/1840221-c95e5f0387bca955.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240" width = "300" alt="" align=center />
创建一个工程
create一直点下去就可以了~ 然后就到MainActivity.java编辑你的代码吧!