Android NDK Compilation Simple example of Helloword

Source: Internet
Author: User

Front, in Win7 with Cygwin on the NDK compile, did find a bit of trouble, to configure a lot of links.

There is another simpler way. is directly on the ADT configuration can be very convenient and practical.

First, to the official download the latest NDK decompression to the designated place.

Second, open ADT,

1. Project

2. Properties

3, Builders--new ...

4. Program

5. Write the project name

6, main below location select Browser FIle System. Select the ndk-build.cmd below the path of the NDK

7. Working directory Select the project to compile

8. Then find refresh (tick refresh resources upon completion)

9. Then find the build Options

10. Check after a "clean", During manual builds, During Auto builds, specify working set of relevant rsources

11. Finally click Specify Resources ... Select the JNI directory in the project (i.e. C source directory)

12, the completion of the determination.


Three, run the project bar. It's done. is not very simple. Save a lot of trouble.

Follow this step to compile the NDK's own Hellojni example.

Android NDK Compilation Simple example of Helloword

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.