Mrunal
Mrunal

Reputation: 14118

Android NDK Error :

enter image description here

Facing below waring while executing Android based NDK application:

Warning:
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml"

After this warning nothing happens in process. Am I doind anything wrong.

Any body please guide I am new in Android as well in NDK development. Is there any other easy way to do the same to access CPP libraries in Android.

Upvotes: 0

Views: 106

Answers (2)

G3M
G3M

Reputation: 1031

Execute ndk-build from the actual project directory. Lets say you are trying to build one of the samples execute ndk-build from this directory /samples/hello-jni. This should build the project. Also add ndk-build path to PATH variable like this set path=%path%;

Ignore the warning. it just means that your target-platform is greater than your minSDkversion Which is usually the case.

Upvotes: 1

ggueno
ggueno

Reputation: 71

The minSdkVersion in AndroidManifest.xml and in Application.mk have to be the same. Change your APP_PLATFORM := android-19 to APP_PLATFORM := android-8 in Application.mk warning will disapear.

Upvotes: 2

Related Questions