mac里边配置android开发环境,intellij开发工具:
1 在android的官网下载 android sdk的mac版
http://developer.android.com/sdk/index.html 选择mac的版本
下载后打开sdk-manager下载各个android版本的api
2 jetbrains的官网下载intellij,intellij里边自带有adt,这样就可以试用intellij新建android项目了,可以试用默认的emulate(android自带的模拟器)进行开发。
3. 由于自带的模拟器比较慢,所以可以考虑使用genymotion来代替自带的emulate。使用genymotion要做以下几件事:
(1) mac里边需要先安装oracle的virtualbox(下载地址)。否则会报错
(2) 使用genymotion要先注册,因为工具本身提供云服务,点击跳转到下载页,在这个页面也能下载到intellij的genymotion插件。
插件安装步骤:
- Start your IDE
- Go to the "File/Settings" menu
- In the new opened window, select the "Plugins" section and then click on "Browse repositories..." button (on the bottom right)
- In the list, click on Genymotion and click on "download and install" button (on the top left)
- Click on "Yes" button to begin
- Click on "Close" button to leave the browse repository window
- Click on "OK" button to leave the settings window
- IntelliJ asks for restart. Accept by clicking on "Restart" button
(3)重新打开intellij,在工具栏就能看到一个红色的genymotion插件的按钮。即可使用
genymotion
作者:呆头龙
出处:http://www.cnblogs.com/waniu/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
该文章也同时发布在我的独立博客中-呆头龙。
欢迎园友讨论下自己的见解,及推荐更好资料。
本文如对读者有帮助,还请多帮
下此文。
谢谢!!! (
)