Questions tagged [android-native-library]
134 questions
23
votes
1 answer
APK size increased 35mb when bumping min SDK from 21 to 24
Recently we bumped our min supported SDK from API 21 to 24.
Apparently this change caused our APK size to increase from 65mb to 103mb.
From the APK analysis in Android studio, we can see it's all of the .so files that have basically doubled in size.…

im_not_josh
- 483
- 3
- 10
17
votes
2 answers
React Native Crashed:Thread : SIGSEGV libjsc.so
We are getting following crash on various random places in android devices. Although we have changed ndk abifilters to "armeabi-v7a", "arm64-v8a"
Crashed: Thread : SIGSEGV 0x0000000000000010
#00 pc 0x723d46f748 libjsc.so
#01 pc 0x723d4bbfe8…

Gufran Khurshid
- 888
- 2
- 9
- 28
17
votes
3 answers
Flutter:MainActivity cannot be converted to FlutterEngine in Java Native code
I am trying to create a plugin for Flutter in Java. I am trying to pass the Android activity parameter in my main Java class.
This is my native code:
package com.example.trsurveys;
import androidx.annotation.NonNull;
import…

Simran Aswani
- 1,236
- 3
- 19
- 42
13
votes
3 answers
Android activity crash (DeadObjectException)
Here is my logcat details. Please help me out in this:
03-28 11:58:13.421 992-5910/? D/ActivityManager﹕ New dropbox entry: com.dpc.selfie, data_app_native_crash, 5f2d762f-9b90-42d2-8a2a-bda978da87bc
03-28 11:58:13.431 992-5910/?…

CHANDRA D P
- 293
- 1
- 4
- 10
9
votes
3 answers
android .so files not getting extracted in /data/data//lib
I am developing a native android application and using an open source library with .so file generated. Facing a strange behavior.
For the first few times, the application worked perfectly well, with the library getting loaded. But now its not able…

user2072344
- 465
- 1
- 5
- 8
6
votes
1 answer
How do I add an Andrioid NDK-built shared library to my APK without using NDK?
Pretty much exact duplicate of Add a native lib to an APK. Since there was no answer I decided to ask again.
I have an Android project. I have an .so library built with android NDK. And I want to use this .so in my project, preferrably - without…

Violet Giraffe
- 32,368
- 48
- 194
- 335
4
votes
0 answers
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) in hwuiTask1
My Android app is crashing with the below error. I don't have much knowledge of native.
My app is a digital signage app in which Video and Image is running alternatively in a loop. For playing the video exoplayer is used and for Image rendering…

a.prateek
- 135
- 4
4
votes
0 answers
android project build on Linux but not on windows
I am trying to build this repository that contain native codes. it build on Ubuntu without any problem but on windows build was failed showing this error:
'make' is not recognised as an internal or external command,
operable program or batch…

Hadi Ahmadi
- 1,924
- 2
- 17
- 38
4
votes
0 answers
Function getauxval is undefined in Android Studio
So I'm trying to use the getauxval function in a native library I write in Android Studio,
but unfortunately I can't compile the code since the function seems to don't exist.
When I include the header auxv.h where the function defined I can find the…

arielttt0
- 59
- 2
4
votes
1 answer
AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libandroidicu.so" not found
I am using a Google Pixel 2 running Android 10. The mobile is rooted.
When I install my app its giving the error AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libandroidicu.so" not found
So I looked for libandroidicu.so in…

stark
- 51
- 1
- 4
4
votes
0 answers
Running android java's native libraries under linux
I have well-working simple android app(graphically does nothing, but calculates some data), that uses native libraries, those libraries is for x86, so I am hoping to make that code work under x86 ubuntu as a simple compiled java binary.
So after…

Taggart Comet
- 128
- 8
4
votes
1 answer
Loading the native library in runtime is taking more time when encrypted with dexguard
I have integrated dexguard in my android application. Everything is working fine.
I have also encrypted the native libraries using dexguard. The problem here is when I apply dexguard it takes few seconds to load the native library whereas without…

Pavani Reddy
- 81
- 1
- 6
4
votes
1 answer
64 bit android, 32 bit application with 32 bit native library
Let's say we have 64 bit hardware with 64 bit linux kernel and 64 bit android.
So Zygote will be running as 64 bit process with its own instance of DVM.
Now assume that there is a third party application which contains a 32 bit native library that…

user3441633
- 41
- 1
- 3
4
votes
1 answer
Prebuilt native library in android application
I have an android application which uses some prebuilt native libraries (Osmand prebuilt libraries). The problem is that when I run the application on mobile phone, it says that these libraries are missing.
When I looked in the .apk file, there is…

Krivers
- 1,986
- 2
- 22
- 45
4
votes
1 answer
Android 4.x. Deploy native libs via apk and load from other application
I have several native libs and I want to deploy them via apk package (i.e. copy them to libs folder or to resources).
Then I need to install separate application and load those libs using:
System.load(path_to_lib);
Which way it can be done? As I…

user1915649
- 59
- 5