欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

ubuntu android 开发环境配置

程序员文章站 2022-07-14 15:05:01
...

$ vim .profile 

$ vim .bashrc

$ vim /etc/environment

 

Download the Android NDK and SDK.

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;

 

编译执行(参考):

http://wiki.navit-project.org/index.php/Android_development#Pre-requisites