一.安装android sdk
- 访问http://developer.android.com/sdk/index.html,下载对应系统的sdk。
注意只下载sdk就好了,不需要下载ADT,Eclipse也不是推荐使用的IDE。 - 设置环境变量,把sdk下的tools目录加到PATH里。如下面的.bashrc:
-
export ANDROID_SDK_ROOT="/home/zhang/android/sdk" PATH="$PATH:ANDROID_SDK_ROOT/tools:ANDROID_SDK_ROOT/platform-tools:PATH" export PATH
- 安卓默认是用ant来打包的,如果你的系统没有ant,需要安装。可以到Apache Ant下载。一般的mac或者linux都是自带的
二. 安装Intellij
0.这货是什么:
集成开发环境
1.安装jdk
参照http://blog.csdn.net/snowdream86/article/details/6677450
2.下载
http://www.jetbrains.com/idea/
3.安装
进入bin下,执行./idea.sh
如果按第一步的配置,ANDROID_SDK_HOME应该是正常配置好的了,下载安装好IntelliJ IDEA后,直接可以使用了。
三. genymotion安装:
0. 这货是什么:
官方说法:
Genymotion is a complete set of tools that provides a virtual environment for Android. It can be very useful for developers, testers, salesman or even gamers.
简而言之:
安卓手机模拟器
1.注册:
https://cloud.genymotion.com/page/customer/login/
2.下载安装 virtualBox
https://www.virtualbox.org/wiki/Linux_Downloads
似乎可以直接apt-get得到
3.下载genymotion
https://cloud.genymotion.com/page/launchpad/download/
4.安装genymotion
chmod +x [INSTALLER_PATH]/genymotion-[VERSION]_[ARCH].bin cd [INSTALLER_PATH] ./genymotion-[VERSION]_[ARCH].bin
5.运行genymotion
进入安装目录
./genymotion
四.在Intellij中配置genymotion
1.下载插件:
- 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
2.使用
点击工具栏中的genymotion小按钮,选择一个设备start
然后运行程序,chooes device的时候选择choose a running device即可
这样的速度还不错
参考文献
--------------------------------------------
https://cloud.genymotion.com/page/doc/
相关推荐
[操作系统]使用IntelliJ IDEA 13搭建Android集成开发环境(图文教程)
基于Win7环境,IntelliJ IDEA 搭建Spark开发环境。
android-parcelable-intellij-plugin, 面向 Android Parcelable样板代码生成的IntelliJ插件 intellij/Android Studio 插件,用于 Android Parcelable代码生成这里工具基于类中的字段生成一个 Android Parcelable插件...
intelliJ IDEA开发环境搭建指导,入门级的,都是基础操作
Java 互联网常见项目开发,基础科目之一,IntelliJ IDEA 配置Tomcat 9 开发环境, 有需要朋友,可以参考一下~
创建运行maven spring boot工程(使用IntelliJ IDEA以及无集成开发环境)源码(怎么选不了不要积分下载)
Intellij platform plugin开发指导手册,java集成开发环境Intellij idea插件开发,本开发指导手册由上册、下册以及附录三个独立的文档组成,全部手册由四部分内容组成: 第一部分:上册,Intellij platform插件开发...
-----Android Studio IDE 环境搭建文档------- 相比Eclipse,Android Studio IDE有自己优缺点: • 优点:对UI界面设计和编写代码有更好地支持,可以方便地调整设备上的多种分辨率。 • 优点:同样支持ProGuard工具...
一直使用Eclipse环境开发Android,也尝鲜使用过Android Studio去开发,各种IDE配合...本文则介绍Lorinnn在开发Android过程不断跌打滚爬中安装的另一套开发环境,相信你在使用后同样有不错的体会。 Intellij IDEA:
非常详细,一步一步教你搭环境
源码,Intellij Idea12开发android 第一个程序HelloWorld, 图文教程:http://blog.csdn.net/juyangjia/article/details/9491781
IntellijIdea+Scala开发环境搭建,描述整个环境搭建过程
用于Android代码生成的Android Studio / IntelliJ IDEA插件用于从XML文件(布局,菜单)生成Android代码的插件。 有关更多信息,请访问网站或查看jetbrains存储库中的插件。 用于Android代码生成的Android Studio / ...
基于 IntelliJ 的 IDE/Android Studio 的 Rainbow 支架
泛微E9开发环境搭建
Ubuntu安装JDK与IntelliJ IDEA
本文详细介绍了intellij idea环境搭建及开发的过程,是作者经验的总结,全部原创,为开发提供参考
IntelliJ IDEA Community Edition These instructions will help you build IntelliJ IDEA Community Edition from source code, which is the basis for IntelliJ Platform development. The following ...
Android Studio是一个基于IntelliJIDEA的新的Android开发环境。与Eclipse ADT插件相似,AndroidStudio提供了集成的Android开发工具用于开发和调试。除了你期望的IntelliJ的能 力,AndroidStudio 还提供: · · · ·...