0

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.

Mrunal
  • 13,982
  • 6
  • 52
  • 96
  • I think it is cause of second error it is being aborted. `No rule to make target` . Check if that file is added in Android.mk – sujithvm Jun 17 '14 at 12:30
  • are you sure the file `e:\Work\MyExamples\AndroidExamples\SasmpleNDKProject\jni\squarewrapper.c` exists? – Alex Cohn Jun 17 '14 at 16:13

2 Answers2

2

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.

ggueno
  • 71
  • 2
  • Maybe this could help http://stackoverflow.com/questions/6243047/android-ndk-no-rule-to-make-target – ggueno Jun 17 '14 at 13:40
1

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.

G3M
  • 1,023
  • 8
  • 19