install oracle-jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
java -version
install Android Studio
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
如果要把Android Studio添加到启动栏,你需要如下操作
打开Android Studio,点击Configure选择Create Desktop Entry,这样Android Studio应该在dash中创建快捷方式了。
如果出现
unable to run mksdcard sdk tool ubuntu16
是因为缺少32位以来库
用下面的命令安装
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6
参考 http://blog.csdn.net/maplelove1211/article/details/51322524
配置NDK环境变量
sudo gedit /etc/profile
在profile文件下面添加,
export ANDROID_NDK= ndk路径export PATH=$ANDROID_NDK:$PATH
保存并退出
然后
source /etc/profile
立即生效
安装kvm虚拟机
sudo apt-get install qemu-kvm
sudo apt-get install qemu
sudo apt-get install virt-manager
sudo apt-get install virt-viewer
sudo apt-get install libvirt-bin
sudo apt-get install bridge-utils
可能要重启电脑
参考 http://www.cnblogs.com/ccskun/p/5527014.html
如果遇到
sh: 1: glxinfo: not found
sh: 1: glxinfo: not found
libGL error: unable to load driver: nouveau_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: nouveau
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 155 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 33
Current serial number in output stream: 34
解决方法
$ sudo apt-get install lib64stdc++6 (if it is not installed)
$ cd ~/Android/Sdk/tools/lib64/libstdc++
$ mv libstdc++.so.6 libstdc++.so.6.original
$ ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/tools/lib64/libstdc++
$ sudo apt-get install mesa-utils (if it is not installed)
安装Python
参考 http://blog.csdn.net/kingppy/article/details/13080919
安装wps,ubuntu自带的office速度慢,我更喜欢wps,哈哈
安装后由于版权原因 ,缺少字体
http://pan.baidu.com/s/1boLfaaV
下载后解压到 /usr/share/fonts 就ok了
好了,如果你想用ubuntu开发android,配置完这些,基本就可以愉快的写代码了