Ubuntu 16.04 搭建Android开发环境
1、Installing Java
sudoadd-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
After that
  sudo apt-get install oracle-java8-set-default
2、Installing Android Studio
   (1) Download Android Studio from here or here,use All Android Studio Packages
(2) Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-143.2739321-linux.zip
sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
(3) To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.
You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.
3、Create a desktop file
gedit ~/.local/share/applications/android-studio.desktop
and add the lines below
  [Desktop Entry]
  Version=1.0
  Type=Application
  Name=Android Studio
  Exec="/opt/android-studio/bin/studio.sh" %f
  Icon=/opt/android-studio/bin/studio.png
  Categories=Development;IDE;
  Terminal=false
  StartupNotify=true
  StartupWMClass=android-studio
4、Installing Android SDK
use Android SDK manager or download from here
5、Add adb PATH
(1) sudo gedit ~/.bashrc
add this to the file
  # Android SDK
  export ANDROID_SDK_HOME=<your sdk path>
  PATH=$PATH:$ANDROID_SDK_HOME/tools
  PATH=$PATH:$ANDROID_SDK_HOME/platform-tools
and then
source ~/.bashrc
(2) cd /usr/bin
sudo ln -s <your adb path>
(3) adb devices
if you get like this:
  List of devices attached
  0123456789ABCDEF	no permissions
then you should just try this:
sudo adb kill-server
and then
sudo adb start-server
if you still get like this:
  List of devices attached
  0123456789ABCDEF	unauthorized
maybe you should open USB debug on your phone
参考资料:
1、http://androiddevtools.cn/
2、http://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu3、http://stackoverflow.com/questions/9210152/set-up-device-for-development-no-permissions4、Ubuntu 14.04 安装genymotion
Ubuntu 16.04 搭建Android开发环境的更多相关文章
- Ubuntu 12.04 搭建Android开发环境
		Ubuntu 12.04 搭建Android开发环境 2013/7/29 Linux环境下搭建Android开发环境 大部分开发人员可能都在Windows下做开发,可能是感觉在Windows下比较方便 ... 
- Ubuntu 16.04搭建LAMP开发环境
		基本设置 1.配置网络环境 管理员给分配了一个静态IP,所以还需要进一步配置网络环境 配置DNS:右上角网络连接->编辑链接->有线连接1->IPv4设置->DNS服务器:20 ... 
- 【转】64位Ubuntu 16.04搭建嵌入式交叉编译环境arm-linux-gcc过程图解
		64位Ubuntu 16.04搭建嵌入式交叉编译环境arm-linux-gcc过程图解,开发裸机环境之前需要先搭建其开发环境,毕竟工欲善其事必先利其器嘛. 安装步骤 1.准备工具安装目录 下载 ar ... 
- [eShopOnContainers 学习系列] - 03 - 在远程 Ubuntu 16.04 上配置开发环境
		直接把 md 粘出来了,博客园的富文本编辑器换成 markdown,没啥效果呀 ,先凑合吧.实在不行换地方 # 在远程 Ubuntu 16.04 上配置开发环境 ## 零.因 为什么要用这么麻烦的 ... 
- Ubuntu 16.04 系统基础开发环境搭建
		1.安装 Git sudo apt-get update sudo apt-get install git Do you want to continue? [Y/n] Y git --version ... 
- Ubuntu 16.04 搭建LAMP服务器环境流程
		http://www.linuxidc.com/Linux/2016-09/135629.htm [安装mysql时 只需安装 mysql-server无需安装mysql-client] mysql ... 
- Ubuntu 16.04 以太坊开发环境搭建
		今天我们来一步一步从搭建以太坊智能合约开发环境. Ubuntu16.04 安装ubuntu16.04.下载链接 //先update一下(或者换国内源再update) sudo apt-get upda ... 
- Ubuntu 14.04 设置Android开发环境
		准备Java环境 本文仅仅安装sdk,不安装什么IDE,由于我仅仅须要命令行模式开发就可以. 首先安装openjdk 1.6.然后安装ant.这个不赘述. 下载SDK 从这里下载SDK for Lin ... 
- Ubuntu上如何搭建Android开发环境
		1.以下是开始Android应用程序编程之前需要的软件列表: a.Java JDK5 及以后版本 b.Java运行环境 c.Android Studio 2.安装Android Studio: x64 ... 
随机推荐
- 【工作笔记二】ASP.NET MVC框架下使用MVVM模式
			ASP.NET MVC框架下使用MVVM模式 原文:http://www.cnblogs.com/n-pei/archive/2011/07/21/2113022.html 对于asp.net mvc ... 
- Android项目---快递查询
			快递查询,快递100上有更多接口信息 1.快递查询的接口是 快递公司的code值+快递单号 进行的网络查询.第一步,怎么将快递公司的名字转换成code值,传递给接口.下面是快递公司以及对应的code值 ... 
- Oracle索引——位图索引
			1.语法create bitmap index index_name on 表名(字段);2.举个例子你就能明白了:如有表 test(id,name,address)数据(1,张三,大连)(2,李四, ... 
- Xamarin.Android
			Xamarin.Android之使用百度地图起始篇 一.前言 如今跨平台开发层出不穷,而对于.NET而言时下最流行的当然还是Xamarin,不仅仅能够让我们在熟悉的Vs下利用C#开发,在对原生态类库的 ... 
- 你的flume-ng的第一篇博客
			我在flume-ng 1.1.0 孵化版的时候就开始接触了,自己也搞了一段时间,没事扯扯心得吧. 先说在前面,flume-ng 后面的版本,我没仔细读change log ,比较农民 , 不知道新添了 ... 
- C++库研究笔记——函数名的宏定义
			6.47 Function Names as Strings:http://gcc.gnu.org/onlinedocs/gcc/Function-Names.html GCC provides th ... 
- UML类图的常见关系1
			设计模式之UML类图的常见关系(一) 本篇会讲解在UML类图中,常见几种关系: 泛化(Generalization),依赖(Dependency),关联(Association),聚合(Aggre ... 
- Leetcode:Minimus Depth of Binary Tree
			The problem description: Given a binary tree, find its minimum depth. The minimum depth is the numbe ... 
- 实践Scrum
			http://blog.vsharing.com/agiledo/ [原创]敏捷开发实践-我们这样实践Scrum-续(81页) 我们团队实践Scrum,有一些做法和教训,希望和大家分享: 公司背景:通 ... 
- <c:if>判断两个<c:forEach>里的数据是否相等
			问题:两个<c:forEach>嵌套,里面循环的值和外面的值进行比较(里层里的PARENTID是否等于外层的ID),如果相等就显示. <c:forEach items="$ ... 
