Android NDK: APP variable defined to unknown applications: hello-jni

Source: Internet
Author: User

The following error message appears when you compile the hello-jni example using the android-ndk-r4b command make APP = hello-jni:

Android NDK: APP variable defined to unknown applications: hello-jni
Android NDK: You might want to use one of the following:
Build/core/main. mk: 81: *** Android NDK: Aborting. Stop.

After checking OVERVIEW. TXT, the following steps are taken to compile r4b:

1/Place your native sources under $ PROJECT/jni /...

2/Write $ PROJECT/jni/Android. mk to describe your sources
To the NDK build system

3/Optional: write $ PROJECT/jni/Application. mk to describe your
Project in more details to the build system. You don't need
One to get started though, but this allows you to target
More than one CPU or override compiler/linker flags
(See docs/APPLICATION-MK.TXT for all details ).

4/Build your native code by running "$ NDK/ndk-build" from your
Project directory, or any of its sub-directories.

The compilation is successful as instructed,

This article is transferred from: Workshop. I hope you will focus on the help documentation. In this way, the response will remain unchanged.

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.