ubuntu android 开发环境配置
$ vim .profile
$ vim .bashrc
$ vim /etc/environment
Download the Android NDK and SDK.
- SDK: http://dl.google.com/android/android-sdk_r18-linux.tgz
- NDK: http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2
- JDK:http://www.oracle.com/technetwork/java/javase/downloads/jdk7u7-downloads-1836413.html
- http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
export ANDROID_NDK=/home/lzyfn/android-ndk-r8
export ANDROID_SDK=/home/lzyfn/android-sdk-linux
PATH=${PATH}:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin:${ANDROID_SDK}/tools:${ANDROID_SDK}/platform-tools:${ANDRO ID_SDK}
export ANDROID_API_LVL=4
export ANDROID_PLATFORM=${ANDROID_NDK}/platforms/android-${ANDROID_API_LVL}/arch-arm
export JAVA_HOME=/home/lzyfn/jdk1.7.0_07
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export JNI_PATH=/home/lzyfn/jdk1.7.0_07/include
export JNI_PATH_PATH=$JNI_PATH/linux
export PATH=$PATH:/home/lzyfn/android-ndk-r8
依赖:
sudo apt-get install openjdk-6-jdk
sudo apt-get install ant
cmake; make; g++; gcc;
编译执行(参考):
上一篇: 富媒体,成山头
下一篇: linux 下的定时任务cron
推荐阅读
-
详解Ubuntu 从零开始搭建Python开发环境
-
Android开发环境搭建图文教程 亲测有效!
-
JDK Android_SDK Android_Studio Genymotion VirtualBox搭建安卓开发环境
-
Python开发环境配置 Vim + Ctags+ TagList
-
Ubuntu14.04服务器环境下配置PHP7.0+Apache2+Mysql5.7的方法
-
ubuntu下搭建php开发环境(nginx+(cgi)php5fpm+memcached+xdebug)
-
Python开发如何在ubuntu 15.10 上配置vim
-
Android环境配置(Eclipse全开发环境下载)
-
VS2015+Qt5+OpenCV3开发环境配置
-
Linux下Android开发环境搭建详细步骤