Build an Android development environment (including NDK) in Ubuntu)

Source: Internet
Author: User
(1) install and configure sunjdkapt-getinstallsun-java6-jdkupdate-alternatives -- configjava (2) install eclipse download a latest forjava version from the eclipse website (3) install ADT to set environment variables: exportGDK_NATIVE_WINDOWS = true and then install ADT (4) based on the Android description to install Android

(1) install and configure sun jdk
Apt-get install sun-java6-jdk
Update-alternatives -- config java

(2) install eclipse
Download the latest for java version from the eclipse website

(3) install ADT
Set the environment variable: export GDK_NATIVE_WINDOWS = true
Then install ADT according to the Android description

(4) install the Android SDK
Download the Android SDK and set the correct path in eclipse preperence.

(5) install Android NDK
Extract to a path, modify the build/host-setup.sh file, change $ result = Pass to $ result = Pass, and then execute the build/host-setup.sh file.
(6) test
Execute make APP = hello-jni in the ndk directory and a so file is generated.
Create an NDK program in eclipse and compile and run it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.