377 questions
0
votes
0
answers
97
views
egui_demo keep stopping
i have my Cargo.toml as
[package]
name = "egui_demo"
version = "0.1.0"
edition = "2021"
autobins = false
[dependencies]
log = "0.4"
android_logger = "0.15....
1
vote
0
answers
691
views
How to update a local Shared Library for compatibility with Android 15 16KB Devices?
We're using the Ananas library in our app. Following the official documentation to test the Ananas demo in an Android 15 Emulator with a 16-KB based system image, we found the app getting stuck (no ...
-1
votes
1
answer
171
views
Which version of NDK support armv8.2-a's NEON intrinsics?
I wanna know from which version of NDK starts, it supports armv8.2-a's NEON intrinsics,like vdot. And r25b already support.
0
votes
0
answers
74
views
\ndk-build on Android native project failed. getting: process_begin: CreateProcess(NULL, uname -s, ...) failed
C:\android-ndk\android-ndk-r26b\ndk-build -C C:\Users\AdnanChohan\Documents\MyProject\native
process_begin: CreateProcess(NULL, uname -s, ...) failed.
process_begin: CreateProcess(NULL, uname -s, ...) ...
1
vote
0
answers
387
views
How to compile the freetype module of opencv_contrib for android
opencv provides a method called putText that can't handle custom fonts, and then discovers the freetype wrapper module in opencv_contrib.
I tried to compile opencv4android and opencv_contrib
python3 $...
0
votes
1
answer
173
views
Could not get unknown property 'ANDROID_NDK' for task ':app:cargoBuildDebug' of type org.gradle.api.tasks.Exec
What went wrong:
A problem occurred evaluating project ':app'.
Could not create task ':app:cargoBuildDebug'.
Could not get unknown property 'ANDROID_NDK' for task ':app:cargoBuildDebug' of type org....
0
votes
1
answer
2k
views
dlopen failed for prebuilt so file at Android Studio
I am making an app with android studio.
There is a problem trying to use external prebuilt so.
main/cpp/CMakeLists.txt was declared as follows.
add_library(ace SHARED ace.cpp)
add_library(banana ...
0
votes
2
answers
1k
views
Where can I find libc.so inside my APK file?
I'm getting native crashes in Android app.
Crashed: Thread: SIGABRT 0x0000000000000000
#00 pc 0x51ba8 libc.so (BuildId: 8b687b4d600e1faa82af5a5197e82129)
#01 pc 0x51b78 libc.so (BuildId: ...
0
votes
0
answers
541
views
build valgrind for Android using NDK21
I am trying to build valgrind for Android. According to the official documentation AARCH64/Android is a supported platform, but the documentation on how to build was last updated to 2014.
What I am ...
0
votes
0
answers
70
views
Hardware Information Android 11+
I know that starting with Android 11, access to this information has been banned, but you still need to get it.
told me that it is possible to do this with the help of ndk on c++, but I have already ...
0
votes
1
answer
236
views
Running python interpreter in shell from a make file
I want to call a python interpreter in a shell, from an android make file.
Initially I tried this:
$(shell python -c "import sys;print('hello')")
The result is an error:
Android.mk:150: *** ...
0
votes
1
answer
157
views
removing duplicate include paths in android makefile
I have a complicated set of android make files that include each other.
As a result, LOCAL_C_INCLUDES of the main make file becomes very long with many duplicates of the same paths.
Is there some way ...
0
votes
0
answers
58
views
How to launch/run the generated binary using ndk toolchain?
I am using the cmake commands to build a C++ code using ndk toolchain as discussed in this link
Here is the copy of my Cmake command:
cmake ${SRC_DIR} \
-DCMAKE_TOOLCHAIN_FILE=${NDK_HOME}/...
0
votes
1
answer
2k
views
NDK build failed on Gitlab ci
my android project require NDK, in app/build.gradle
android {
...
ndkVersion '23.1.7779620'
...
}
it work build on local. But throw failed on gitlab-ci like this :
> Task :...
1
vote
1
answer
972
views
android ndk: specify APP_ABI with cmake
I want to compile some c files for my android project. I'm using NDK with cmake. And I want to generate the .so files for all available CPU types. Most of the tutorials online are based on ndk-build, ...
0
votes
1
answer
325
views
Unable to get a jstring from R.string.* via JNI in a native C application
I'm working on a native c/c++ app, that uses string resources via the strings.xml file.
Attempting to use AAssetManager to load the "strings.xml" file, has no effect. Returns the same error
...
1
vote
1
answer
164
views
How can I prevent copying/pirating native compiled files (.so file) from my Android APK?
I am using NDK/c++ to do complex calculations in my Android app. After the compilation, .so files are present in the lib folder. I am wondering whether anyone can copy those .so files and use my ...
2
votes
1
answer
4k
views
can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol
OS: Ubuntu 20.04
MlPack(branch): master
I am trying to build a program which is dependent on mlpack for android. For that I am using ndk-build. To make the library compatible for arm64 architecture, I ...
0
votes
1
answer
594
views
How to include multiple .c files in a single android.mk file?
I have 2 .c files hello.c and world.c I'm using ndk-build. I see that the .so file name is actually the name of the "LOCAL_MODULE".
How would I include both the files as a part of the build?
...
1
vote
0
answers
186
views
How to build MLPack library as a static library using NDK-build?
Can I build a library like mlpack which has only .hpp file as a shared library using NDK-Build?
I am trying to build an API using ndk-build from linux for android arm64 and armeabi-v7a. But my API has ...
1
vote
1
answer
321
views
Error while trying to run MLPack from source
OS:Linux
Compile: NDK-Build
I am facing error while I try to compile mlPack from source. The code works fine when I run by installing the mlPackand it's dependencies(armadillo, ensmallen, boost). But ...
0
votes
0
answers
378
views
Android: Facing issue while migrating NDK from 10 to latest(23)
We have one android project with ndkbuild. We are using NDK version r10e and want to migrate it to latest version(r23b). But we are facing below error.
error: use of undeclared identifier 'catopen
...
0
votes
1
answer
343
views
Issue using functions from opencv shared libraries cross compiled for android
I was trying to build and execute a cpp code that links few opencv shared libraries that I had cross compiled for android but while trying to utilize the namespace cv or trying to use a function of ...
1
vote
1
answer
2k
views
Manually compile C code with command line to run on Android
I want to compile some C code manually in order to run it on Android. The C code can be as simple as this hello world program:
#include<stdio.h>
int main() {
printf("Hello World\n"...
2
votes
2
answers
1k
views
How to import a .so Library in Android.mk when i build APK
I have this problem: I have to build my app using the Android.mk file and I have to insert the library "libcom_google_ase_Exec.so" inside the final apk, but I can't do it. What I get is an ...
0
votes
0
answers
140
views
Facing issues while migrating Android project with NDK version from r10e to latest version(r23b)
We have one android project with ndkbuild. We are using NDK version r10e and want to migrate it to latest version(r23b).
But we are facing lot of build issues while migrating and below is the main ...
2
votes
1
answer
7k
views
MacOS android studio NDK was located by using ndk.dir property. This method is deprecated
I am getting the following warming messages:
WARNING:: NDK was located by using ndk.dir property. This method is deprecated and will be removed in a future release. Please delete ndk.dir from local....
1
vote
1
answer
2k
views
Mac Os ANDROID_NDK not set
I am trying to run the sample project of the following project: https://github.com/Shopify/react-native-skia
When I try to start it it gives me the following error message, it says ANDROID_NDK not set....
0
votes
1
answer
368
views
Android Studio NDK app performance difference between RUN and BUILD
I am trying to create a sudoku app with C++, SDL2 and Android Studio NDK.
In theory it is already working well unless I build and install the app manually.
While I get around 50-60 FPS when I run the ...
0
votes
0
answers
34
views
ndk-bulid problem with bulit file Macintosh (CR) and Unix (LF)
I'm trying to build my native library (C++) but I always end up with output file as Macintosh (CR) and not Unix (LF)
here's my files:
Android.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
...
1
vote
0
answers
558
views
Error: Execution failed for task ':app:externalNativeBuildDebug'. [macOS Monterey Apple Chip - Android studio]
I am trying to compile project on apple chip M1MAX macOS Monterey. and facing following problem.
Build command failed.
Error while executing process /Users/ahmed/Library/Android/sdk/cmake/3.10.2....
1
vote
0
answers
210
views
Play console warning with native code, React Native App
I had a warning form Google Play Console, that my aab contains native code and I need to upload symbol files. I have done all the steps from https://support.google.com/googleplay/android-developer/...
0
votes
1
answer
2k
views
Can I force use armeabi-v7a vs arm64-v8a according to Android API LEVEL?
I am building native library using NDK21d for 2 archs: armeabi-v7a and arm64-v8a.
I am embedding both libraries .so (32 and 64) inside the APK, which has minsdkversion set to 21.
But I am facing an ...
2
votes
2
answers
2k
views
Appcenter android build fails to install in device
I have configured my react-native app in appcenter for build and distribution. Everything was working fine and all of a sudden, build failed with the following error
> Task :app:...
0
votes
1
answer
754
views
Android How to enable position independent flag -fpic for c++ code
I am using a c++ class in my application to store my constants/urls etc. For that I have configured ndk and CMakeLists.txt file. So I only have two files in my jni folder which is app-config-native-...
1
vote
1
answer
331
views
Make executable using android ndk on linux without Android Studio
is it possible to make executable binary without using android studio on linux?
example
adb shell /system/bin/ifconfig
log
Encap link: Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
...
0
votes
1
answer
427
views
Modify value of String in JNI NDK
i have an int a = 20 in my java code
public int a = 20 ;
then i had declared ndk & java native interface in my project witch can change value of int a = 20
to a= 100 , means that my native ...
0
votes
1
answer
52
views
ndk-build, C:\User\MyUser is not recognized as an internal or external command
I have a first demo project like
When I try to run ndk-build on Window. I get the message
C:\Users\ThinkPad' is not recognized as an internal or external command
operable program or batch file.
In my ...
2
votes
3
answers
3k
views
Android: NDK-Build C/C++ debug in android studio
Trying ndk-build C code debug in Android studio(v4.1.2).Below is build.gradle setup.
jni , C/C++ Source files Dirs. Actual C files are not under jni folder but outside it but referred in android.mk ...
0
votes
1
answer
2k
views
How to build Android's adb from source code?
I'm trying to build Android's adb from source code, which I downloaded from here.
I tried to use NDK21 and its ndk-build, but got this error
Android NDK: APP_PLATFORM not set. Defaulting to minimum ...
0
votes
1
answer
168
views
How to request camera and location permission in android native sdk?(C++)
I've searched all over the web but cannot find anything related to permissions. Is it even doable in native C++? How do I do it? I am completely stuck.
Can you guys help me?
0
votes
0
answers
107
views
Android NDK - Symbol __sfp and __sflag are not compatible with 64bit
Application is supporting to 32bit. Facing issue while migrating from 32bit (armeabi-v7a) to 64bit (arm64-v8a).
Issue - assertion "orig___sfp" failed
In project, using two symbol __sfp and ...
4
votes
1
answer
1k
views
Switch from aapt to aapt2 for native app packaging
We have a great build system, so we're not looking to use gradle. Right now, we use appt to build an APK and it works great and the APK runs well. I see that aapt2 is the future, though, and so we'd ...
0
votes
2
answers
736
views
Android CMake and ndk-build produce different sized files
I am trying to see if we can reasonably migrate from ndk-build to cmake for building our C++ library for android.
When I build exactly the same code with ndk-build to obtain a static library (.a), it ...
0
votes
1
answer
265
views
Reduce size of installed ndk-bundle
I have install ndk-bundle from sdkmanager. The ndk-bundle taking around 4.2GB.
The bundle has tools chains for different architectures and platforms. Is there a way to just install tool-chain for one ...
1
vote
0
answers
345
views
Execute command line equivalent to Runtime.getRuntime().exec(cmd); in JNI C
I was developing an app which had requirement to implement root detection logic, so by researching I found some detection logic in JAVA and had implemented following class.
class RootDetection {
...
0
votes
1
answer
543
views
Checking whether package is installed on android device in JNI C
I wanted to check whether specific set of packages are installed on the device in c++ ndk code as I don't wanted to check in Java code, so after research I had written code comparing code in java. My ...
0
votes
1
answer
773
views
NDK Static library project doesn't compile for arm64-v8a
I'm trying to build one static library (cocos2d) using android-ndk-r13b.
I have Android.mk for static library project and there is specified
APP_ABI := armeabi armeabi-v7a arm64-v8a
a list of target ...
1
vote
1
answer
2k
views
Native app crash - getting memory address issue - com.android.runtime/lib64/libart.so & #00 0x00000000afef03c4 <unknown>
I am working on the migration of the 32bit NDK project to 64bit.
We are calling so many libs in projects:
like - libssl.so, libcrypto.so, libc.so, liblog.so, libcrashlytics.so
In project going to read ...
0
votes
0
answers
1k
views
android project build with ndk is failing due to permission denied error
I bought a new laptop (preinstalled with macOS Catalina) and i'm setting up an existing android project, and installed the same version of ndk and kept all the settings same.
I tried to build the ...