Questions tagged [ndk-build]

Android NDK's shell script for building C and C++ source code. The tag is to be used with the [android-ndk] tag.

ndk-build is a shell script of Android NDK for building C and C++ source code. Internally, ndk-build uses tool.

The tag is to be used either with or tags.

379 questions
5
votes
1 answer

Unable to run React-Native UIExplorer example project

I've been trying to run UIExplorer project on Windows. I am getting the following error- ... ... make: *** [D:\react-native\ReactAndroid\build\tmp\buildReactNdkLib/local/ armeabi-v7a/objs/reactnativejni/JExecutorToken.o] Error 2 ... ... What went…
efkan
  • 12,991
  • 6
  • 73
  • 106
5
votes
3 answers

Why $(call my-dir) in Android.mk file returned wrong path?

When I try to compile .so to a bibiliotek, I receive an error that the way is incorrect and instead of the local way expected by me I see a way to NDK, in what a problem, here my MK-file: include $(CLEAR_VARS) LOCAL_PATH := $(call my-dir) @echo…
BORSHEVIK
  • 794
  • 1
  • 8
  • 12
5
votes
0 answers

UnsatisfiedLink error :Native method not found findLibrary returned null

I am working on android project related to android JNI and NDK . I have loade all the .so files required for the project.But it is still showing error that UnsatisfiedLink Error, Native method not found, findLibrary retuned…
5
votes
0 answers

Android NDK app crashed on run on functions that not even called

I am trying to build an Android app based on Miracl crypto lib (C/C++). I have added their sources and my sources to jni folder. And wrote simple call to function that loads shared_library and returns string(withoud calls to c++ functions, just…
android_dev
  • 3,886
  • 1
  • 33
  • 52
5
votes
1 answer

Unable to build GStreamer tutorials using Android Studio

I am trying to build the tutorials that are bundled with gstreamer-sdk-android-arm-debug-2013.6. The Android.mk file in the src/jni directory (tutorial 1 project) references environment variables such as GSTREAMER_SDK_ROOT. From what I have read,…
svenyonson
  • 1,815
  • 1
  • 21
  • 30
5
votes
2 answers

Android debugging ndk-gdb

I have been fighting with this for days and I have gotten closer but still no luck. I am trying to build an android app via ndk-build NDK_DEBUG=1 which works just fine. I can launch from eclipse and have it run, but I want to debug from the…
c alvarado
  • 69
  • 2
  • 8
5
votes
2 answers

Unable to find android NDK builder r9 for mac

I have a need to build my code using Android NDK builder r9. But I don't have windows with me only mac. I was able to find it for windows…
Venky
  • 559
  • 7
  • 25
4
votes
1 answer

How to compile libogg and libvorbis for Android

In my Android app, I would like to implement the libogg and libvorbis libraries, so I can play and manipulate ogg files. Unfortunately, I haven't managed to find any tutorial that can explain how to achieve that. That said, here is what I found the…
matteoh
  • 2,810
  • 2
  • 29
  • 54
4
votes
0 answers

Android Studio ndk-build finish with non-zero value 2

I updated my Android Studio to 3.1.3 yesterday and then the old projects previously working with NDK fail to work after that and give me this response: Process 'command '/Users/new-User/Library/Android/sdk/ndk-bundle/ndk-build'' finished with…
Yang
  • 67
  • 3
4
votes
1 answer

difference between ndk-bundle and android-ndk-r15c

are there any difference between ndk-bundle obtained donloading the ndk from SDK manager and android-ndk-r15c from android developers? I'm not able to compile a project cloned from git-hub, in the description is write that I need android-ndk-r8c...…
Giulio Pettenuzzo
  • 786
  • 1
  • 5
  • 20
4
votes
1 answer

Android Unable to identify the apk for variant arm-debug and device

I have the .so files and the jar, but when I run it I get the error: Unable to identify the apk for variant arm-debug and device. I'm a noob here so I must be doing something wrong, but I cant seem to figure it out. Any ideas? I am using Android…
Badger
  • 103
  • 1
  • 7
4
votes
1 answer

Error during building with android-ndk : There are no modules to build in this project

I cloned git from the link below and modified some lines and tried to build it. ($git clone https://android.googlesource.com/platform/external/wpa_supplicant_8) But it gives me the error below and I have no idea how to resolve…
yfaney
  • 83
  • 1
  • 6
4
votes
2 answers

How to make "ndk-build clean" continue on error

I have a large source tree with multiple projects. One of the projects uses JNI. When I try to "make clean" on my entire source tree it goes through and removes all the object files and libs. Then it steps into my applications directory to make…
spartygw
  • 3,289
  • 2
  • 27
  • 51
4
votes
1 answer

Can't include NDK header files

i wrote a simple C++ Programm using NDK, and it works fine. Now I want to add the following header file for using logging functions: android\log.h My Android.mk look like this: LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_LDLIBS:=…
Tho Hooves
  • 65
  • 1
  • 3
4
votes
2 answers

NDK- Build error

I am buliding a NDK for fbReader. But I am unable to build NDK. whn I am using cmd ndk-build the it says no command found. But I fill full path of NDK hen ite show the below error.. Android NDK: Application x86-4.2.1 targets unknown ABI…
AmmY
  • 1,821
  • 1
  • 20
  • 31
1 2
3
25 26