Android NDK application not found error

I tried to compile and run the hello-jni application from the NDK examples in Motodev Studio, and when I start the phone, it crashes and LogCat says “Library not found”. Can anyone suggest how to properly set up a project? BTW, can I write an entire Android application using only C / C ++ code?

+3
source share
2 answers

Library not found: - You have successfully compiled the jni part. If you created a module jni, then it will be in the libs folder .so.
Using NDK to call C code from Android apps

Refer to When you need to develop your own code , there he gave

, . Android SDK NativeActivity, , (onCreate(), onPause(), onResume() ..). , . , , Android 2.3 (API Level 9) .
, Services Content Providers , , - API , JNI .

+4

, . Android jni , "disable automatic ndk-build call" build.gradle

0

All Articles