13,533 questions
Advice
0
votes
3
replies
83
views
How to distinguish interface names of Hotspot and WiFi?
I have been working on a 1v1 Android game. In one of the game modes, one phone acts as the server and turns on it's Hotspot, whereas the other phone (the client) connects to the Hotspot of the server ...
-1
votes
0
answers
103
views
React Native 0.84 Android build fails with std::__ndk1 C++ linker errors using NDK 27
I created a React Native project using React Native 0.84.1.
When I run:
npx react-native run-android
the build fails with many C++ linker errors.
Environment:
React Native: 0.84.1
NDK version: 27.1....
1
vote
1
answer
81
views
SIGSEGV in aidl-service-armnn-gpu when initializing TFLite NNAPI Delegate on specific Vendor Devices (Vivo/Mali)
I am developing a custom C++ Inference Engine for Android using the TensorFlow Lite C API. The engine is compiled as a shared library (.so) and loaded via JNI.
The engine works perfectly on Pixel and ...
0
votes
1
answer
121
views
How to build a xtensa-esp32-elf toolchain that is able to run on Android aarch64-linux-android?
I used crosstool-ng to build a toolchain that is able to compile for xtensa-esp32 (target) and run on android 64 bit device (aarch64-linux-gnu). However it's compiled with -gnu gcc package, not with ...
1
vote
1
answer
176
views
Cross-building GNU GCC on x86_64-pc-linux-gnu for aarch64-linux-android with Android NDK
There's a nice terminal app called Termux for android phones. The app provides a fully fonctional nix terminal and a package manager. The app dev is dead, and only some packages are maintained. You ...
0
votes
1
answer
225
views
native lib 16kb alignment -- libsc-native-lib.so under arm64-va
I have been grappling with this odd and obscure lib for apk 16kb page size alignment -- libsc-native-lib.so
No, it is not a third party lib but all comes (' believe) with NDK / Android studio sdk.
...
1
vote
0
answers
97
views
Invalid character escape '\U' when trying to build NDK example in Android Studio
I've made a fresh install of Android Studio Otter 2 Feature Drop on Windows 10 and then installed the NDK and CMake using the SDK manager in Android Studio. However, I'm not able to build any of the ...
-1
votes
1
answer
50
views
Could NOT find LibLZMA when building android ndk
I'm following this document https://android.googlesource.com/toolchain/llvm_android/+/refs/heads/llvm-r450784 to compile the NDK.
repo init --partial-clone --no-use-superproject -b llvm-toolchain -u ...
6
votes
4
answers
5k
views
An error occurred while preparing SDK package NDK (Side by side) 29.0.14206865: Not in GZIP format
An error occurred while preparing SDK package NDK (Side by side) 29.0.14206865: Not in GZIP format. While trying to test my application on an Android phone in Flutter, I encountered this error:
...
-1
votes
1
answer
201
views
Android shared library build using NDK leads to loading failure
I'm working on a bluetooth library. This library is used by the service at runtime to talk to the controller.
The service binary is built in AOSP env with soong.
The library i have is generally logic ...
0
votes
1
answer
504
views
can’t install the NDK because the file keeps getting corrupted
Packages to install: - NDK (Side by side) 27.0.12077973 (ndk;27.0.12077973)
Preparing "Install NDK (Side by side) 27.0.12077973 v.27.0.12077973".
Downloading https://dl.google.com/android/...
0
votes
1
answer
96
views
Folder permissions failing even after requesting access was accepted
I've been beating my head against this problem for about a week with no visible path forward. For context I'm porting a C++ app to android NDK that has the requirement that it must save data in public ...
0
votes
1
answer
250
views
Why is the android build insisting on NDK version 27.0
In my android app, I included a very simple native c++ module. This needs now to comply to the new 16 KB Google Play compatibility requirement
As far as I understood, I need to upgrade to NDK-Version ...
0
votes
0
answers
115
views
mkottman/AndroLua: building from sources
I have a Lua integration inside my Android Application (basically printing to Bluetooth printer routines). I already has built .so libraries of AndroLua and it works fine. Recently Google sent a note ...
0
votes
1
answer
146
views
Cross-compiled executable for arm64: "No such file or directory"
I've cross-compiled an executable (AVR GCC) to run on Android arm64 device with aarch64-linux-gnu toolchain (not using Android NDK).
file avr-g++ gives the following in "adb shell":
file avr-...
1
vote
0
answers
56
views
How to determine exact format for YUV AImage in Android?
I'm working on VLC for Android.
It have Decoding Acceleration feature, which uses hardware for decoding and CPU for rendering.
I'm using AImageReader with AIMAGE_FORMAT_YUV_420_888 and MediaCodec ...
0
votes
1
answer
96
views
g++: error: unrecognized command-line option '-Qunused-arguments'
I'm cross compiling avr-gcc to run on android arm64 devices with crosstools-ng on Ubuntu. While compiling i'm getting "g++: error: unrecognized command-line option '-Qunused-arguments'" ...
1
vote
0
answers
1k
views
Google Play Console 16 KB memory page size requirement – Which React Native CLI versions support it and project setup steps?
I recently received a notice in my Play Console regarding the upcoming 16 KB memory page size requirement (screenshot attached).
"Your app must support 16 KB memory page sizes by November 1, 2025....
0
votes
0
answers
24
views
LOCAL_MODULE_FILENAME must not contain a file extension (Implementing GStreamer in Andriod Studio Project)
I am trying to integrate GStreamer via JNI into an existing Android Studio project.
My Android.mk file looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := rtsp-...
3
votes
2
answers
2k
views
Flutter 16 KB image support
Flutter Android App: 16KB Memory Page Compatibility Issue
I got a Google warning saying:
The app must support 16kb memory page sizes.
I tested the app on an emulator that uses X86_64, which is ...
0
votes
0
answers
79
views
Flutter or Gradle or Android question - hard to identify
I am trying to run flutter build apk after having upgraded to flutter 3.32.0
Framework • revision be698c48a6 (4 months ago) • 2025-05-19 12:59:14 -0700
Engine • revision 1881800949 (4 months ago) • ...
0
votes
0
answers
1k
views
Google Play rejecting Unity Android AAB not supporting 16 KB page size
I’m preparing my Unity Android app for Google Play’s new 16 KB memory page size requirement (for ARM64 native libraries).
Setup
Unity: 6000.1.13f1 → upgraded to 6000.2.2f1
Vuforia: 10.25.4 → upgraded ...
2
votes
1
answer
4k
views
Android 16 KB Alignment - How to find what to update? [closed]
When I launch my APK on emulator, Android Studio says:
APK app.apk is not compatible with 16 KB devices. Some libraries have
LOAD segments not aligned at 16 KB boundaries:
This message is followed ...
2
votes
0
answers
1k
views
Android App Fails 16 KB Page Size Check – How to Verify and Fix ELF Alignment? [duplicate]
When I run my app in Android Studio, I see this notification:
APK my_app.apk is not compatible with 16 KB devices. Some libraries have LOAD segments not aligned at 16 KB boundaries:
dump_syms/linux/...
1
vote
1
answer
1k
views
How can I build and check NDK libraries for 16KB pages on Android from the command line?
I'm an partially sighted programmer who is far happier with a command line than an IDE, and finds IDE build systems very confusing. I'm successfully building shared libraries using the Android NDK ...
0
votes
0
answers
341
views
How to prevent Flutter/Android Studio from downloading NDK when running a project?
I recently updated Flutter to version 3.32.8 and removed all old Android SDK files. After reinstalling the Android SDK, I ran my first Flutter project, and Android Studio/Gradle started downloading ...
1
vote
1
answer
182
views
Is this the correct way to connect to an AIDL service?
I'm trying to connect to an AIDL service for the first time, and I'm afraid that I might be doing something wrong, even though, on the surface level, everything seems to be working fine. Am I doing ...
1
vote
0
answers
54
views
How to package prebuild library with prefab into a aar
I want to build a Android native library which contains a prebuild so files, for example librga. And package it to an aar. This aar should:
Contains librga.so and headers.
I write some jni interface ...
1
vote
0
answers
107
views
Qt Creator does not link Android compiler to Kit
I'm trying to set up Qt Creator for Android development using Qt 6.9.1 on Windows 10. The SDK, NDK, and emulator are all detected correctly in Edit > Preferences > Devices > Android. However, ...
19
votes
3
answers
34k
views
16KB memory page size for Flutter Android and ndkVersion requirement?
I've checked the migration guide, and already ensured my Android Gradle Plugin (AGP) version is 8.5.1 or higher; mine is at 8.7.3.
The second thing I've ensured is that the alignment of ELF segments ...
2
votes
0
answers
63
views
Medicodec dequeue out failing with ImagerReader [closed]
I'm adding imagereader support in VLC-Android decoder pipeline. VLC has OutThread for dequeuing output and another thread for queuing input. When buffers are used dequeue_out (wrapper for ...
0
votes
0
answers
37
views
I want to upgrade turbo jpeg version from 1.5.0 to 2.1.0
I am trying to upgrade the built-in libjpeg-turbo version from 1.5.0 to 2.1.0 to improve MJPEG decoding performance.
What I did:
1. Replaced the folder
-> Removed libjpeg-turbo-1.5.0
-> ...
0
votes
0
answers
43
views
Android ndk-build fails with "LOCAL_SRC_FILES points to a missing file" after integrating libturbojpeg.so 3.0.2
I recently upgraded from libjpeg-turbo 1.5.0 to 3.0.2 and attempted to integrate libturbojpeg.so into an Android Studio project using ndk-build. However, the build process fails during ndkClean or ndk-...
0
votes
1
answer
344
views
NDK toolchain aarch64-linux-android folder not found
I want to compile Android 4.19 kernel in Ubuntu, but after I download NDK toolchain zip for Linux and extract, I didn't find the aarch64-linux-android folder. What should I do?
Here is the toolchian ...
0
votes
0
answers
262
views
SDL3 Android Manual Build - App won't start
I'm automating the Android build process for an SDL3-based project without using Gradle. While SDL provides an Android project template, it doesn't fully cover my case, so I'm customizing it to ...
10
votes
8
answers
7k
views
Flutter 3.32.0 – Release build failed to strip debug symbols from native libraries after upgrade
After upgrading to Flutter 3.32.0, Dart 3.8.0, and DevTools 2.45.1, I'm encountering an issue when building a release app bundle (AAB).
The build fails with this error:
Release app bundle failed to ...
2
votes
3
answers
6k
views
Why cannot I update NDK version in flutter using "flutter." values?
I am trying to build a release version of flutter app. And I get the warning message:
Your project is configured with Android NDK 26.3.11579264, but the following plugin depends on a different Android ...
1
vote
0
answers
50
views
EditText multi-line / enter key does not work with OpenGL NativeActivity
Using both OnEditorActionListener, TextWatcher, and overriding key callbacks on everything I can think of, I'm able to pick up on typed text changes EXCEPT for ENTER key with the following code:
// ...
3
votes
3
answers
3k
views
How to change the Flutter default "ndkversion"?
I have a problem with my Flutter app picks up/installs ndkversion 26 by default and I have issues with some libraries need at least 27.
I tried to go to /android-sdk/ndk and remove them all, also used ...
0
votes
0
answers
52
views
Why does my Android game fail to re-launch after an in-app update on some devices?
When my Android game does an in-app update it fails to relaunch on some devices. Here's the logcat from two devices, one that succeeds and one that fails to relaunch.
Samsung S24 - successfully ...
4
votes
1
answer
123
views
C++ code is unable to iterate app folder when deploying a Qt app on Android
I'm migrating some code from Qt 6.2.2 to 6.9.0 under Android.
I have some code looking in the application folder for .so files (for potential plugins to be loaded). This code used to iterate the app ...
0
votes
1
answer
206
views
What does it mean when an Android app has a transactNative DeadObjectException?
My app is a game that consumes a native.so file and has a JNI layer. Whenever the OS kills my app (for example during an in-app update), I see this warning in logcat. What does it mean and how can I ...
0
votes
2
answers
228
views
Unable to find -lunwind library in Rust for Android target
I am creating a shared library for aarch64-linux-android target. After setting the linker to the linker provided by the android NDK and configuring the path to the prebuilt native android libraries ...
12
votes
1
answer
8k
views
Flutter Android NDK Version Conflict: Plugins Require 27.0.12077973 but Project Uses 26.3.11579264
Problem:
Your project is configured with Android NDK 26.3.11579264, but the following plugin(s) depend on a different Android NDK version:
- connectivity_plus requires Android NDK 27.0.12077973
- ...
1
vote
2
answers
330
views
flutter application does not open with android emulator
I have created a simple app.
I choose one of my android emulator to start.
The emulator started and appear successfully.
Then I choose "run without debugging"
It will say nothing and ...
0
votes
0
answers
36
views
Cross-compiling matrix-rust-sdk for Android [duplicate]
I am trying to create a native library for Android from matrix-rust-sdk. After days of trying to get the package and its dependencies to compile, I finally managed to do so using the following script ...
2
votes
1
answer
358
views
Android NDK ld.lld: error: duplicate symbol: _start >>> defined at crtbegin.c
I am trying to assemble and run a simple Hello World program on my Android phone. My host laptop is a Ubuntu 22.04 64 bit system. I downloaded the android-ndk-r27c and extracted it to my Android ...
0
votes
1
answer
214
views
Flutter Firebase Integration Error: NDK Version Conflict
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\KimoStore\StudioProjects\flutter_course_1\android\build.gradle.kts'...
1
vote
0
answers
73
views
Android C++ NativeActivity compiles but doesn't work
Sorry, I use Google translator. I created a ready-made example of Native C++ from a template in Android Studio, Windows 10 x64, SmartPhone Cubot C30 Android 10 аnd TechnoPova5 Android 14. I inserted ...
1
vote
0
answers
84
views
Correct way to link libraries?
I am working on an Android project which builds native libMain.so using CMake.
In my CMakeLists.txt, I link main target with many other static libraries like boost.
// main CMakeLists.txt
add_library(...