The simplest configuration method for creating NDK and JNI development environments in eclipse

Source: Internet
Author: User

First, the use of the environment

1, WINDOWS64-bit operating system

2, ADT for adt-bundle-windows-x86_64-20130917

3. NDK for android-ndk-r9b

Second, configure the build header file. h

⒈ First, click External Tools configurations ...

⒉ Then, click

⒊ Next, look at the diagram operation

Finally click Apply, then we create a new class file in an Android project

Configuration build NDK, similar to the above, can be configured in the reference diagram

Create a C file

Create a Android.mk file

Create a Application.mk file

Finally, the library file loading so can use the C function as a Java function.

Well, it's a quick way to develop JNI with Eclipse, have you learned it?

The simplest configuration method for creating NDK and JNI development environments in eclipse

Related Article

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.