All Questions
117 questions
0
votes
1
answer
40
views
Lib.so files is not getting load even i call system.load
i have this error which i m using in my code
i m trying to load lib but it doesn't load
i m using mpv player and i have libmpv.so files
this is what i m doing in my code
public class MPVLib {
...
0
votes
0
answers
32
views
How to reduce the size of bundle apk in Android?
We have a native library (.so) which is about 2 MB for each Architecture('x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a’). Using this Native library we have written an SDK which is going to be integrated ...
0
votes
0
answers
129
views
How do I add DobbyHook in android studio
Couldn't find any information about how to install DobbyHook for android studio
The only thing i found was the original documentation, which didn't clarify anything. By the way my emulator has x86_64 ...
1
vote
0
answers
30
views
how to reslove unsatisfyLinkError for libgdal.so file in 64-bit android
I am developing an Android app that uses the libgdal.so library. When I run the app I get the error like this
java.lang.UnsatisfiedLinkError: dlopen failed:
"/data/app/~~fEMejdDPZpV3FZzivEAV9Q==/...
0
votes
0
answers
27
views
No implementation found for Int when i use .so file android
I want to use .so file, i've success to load the library but the function is not working. Below is the code
Structure
MainActivity.java
JniLoader.java
package com.example.testapps;
public class ...
0
votes
0
answers
194
views
Copy .so libs to data/app/lib inside device android
I have libexample.so library inside app/lib/arm64-v8a/ and I want it to be copied to data/app/lib inside device upon installation of the app. I know that the android package manager is supposed to do ...
0
votes
0
answers
107
views
In Android, I am not able to find few symbols inside my .so file?
I generate a .so file during my build and add it in the right place inside 'jnilibs' folder but I am facing an error stating "Cannot find the native function implementation with Unsatisfied Link ...
0
votes
0
answers
19
views
What happened if disable imports of .so file
I am just curious about if I edit and disable a .so file imports(strlen,malloc,strcmp,etc) after that I execute the library then what happening? What should I expect!
I am expecting which imports I ...
0
votes
0
answers
3k
views
Getting error : java.lang.UnsatisfiedLinkError: dlopen failed: library "libtriangulation.so" not found in Android java
I am running an old Android project from year 2019 on the Android Studio Version Electric Eel.
I have imported an existing module in that project which is using a .so library. When I'm executing the ...
0
votes
2
answers
104
views
I use .so library and get NoSuchMethodError error
I use .so library, as this
package ru.integrics.mobileschool.view.activity;
import android.util.Base64;
public class MainActivity {
public MainActivity(){
System.loadLibrary("x2&...
0
votes
0
answers
58
views
.so libraries in Android Studio
I'm using scripts from an old project, but the sources are already lost
In an old application, I used the library like this:
public class x2.X {
static {
System.loadLibrary("x2");
}
public ...
4
votes
0
answers
305
views
Why does JavaSystem.LoadLibrary() throw an UnsatisfiedLinkError despite the library existing in project?
I try to embedd an external library to my .Net MAUI project, but am unable to.
Following the process in this question:
I copied the .so file into
<project root>\Resources\lib\<platform>\ (...
0
votes
1
answer
580
views
How to prevent .so files in jniLibs folders from being shrink
I created an app which uses native codes, when I compile it Android Studio in debug type app works perfectly but when I generate a signed aab file, the jniLibs files get compressed and it breaks ...
0
votes
0
answers
143
views
load .so file in xamarin
need to load one .so file and call some native methods...
I have followed each single step
Load .so file in Xamarin.Android
not sure whether library is loading or not not...but there is not exception ...
0
votes
1
answer
336
views
Trying to build PDF reader using MuPDF library, app crashing while opening PDF
Good Day,
I'm trying to build PDF reader using MuPDF.
Everytime when I try opening pdf in app its showing libmupdf_java.so not found and application crashed. I'm using mupdf.aar bundle, I opened ...
0
votes
2
answers
1k
views
Using .so library classes in after System.load()
I am trying to use the .so external library in my Android project. It's not clear to me how can I access the classes in the library once it's loaded via System.load("path to lib")?
The ...
1
vote
1
answer
135
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 ...
0
votes
1
answer
777
views
Generate .so files?
Hi developers I have question regarding generating .so files. And my app keeps stopping. Can anyone have the answer?
These are the steps I had undergone so far:
I have created an empty project in ...
1
vote
0
answers
123
views
Can i use .so file from Apk and use in a python / Java Script
I have an apk. one .so file is being used in this apk.
There is a function in the .so file. APK is invoking that function by passing 4 inputs as a parameter and getting output.
Now I have to call that ...
1
vote
0
answers
100
views
How to sync .so file with project in android studio?
I add .so file to app\src\main\jniLibs\libs directory as below:
app
...main
.......jniLibs
..............libs
..................armeabi
.........................libjsqlite.so
..................armeabi-...
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
545
views
Loading Flutter SO files Dynamically Crashes
I am new to flutter. I have used the add 2 app concept from flutter documentation
https://docs.flutter.dev/development/add-to-app
to one of my existing android project its working fine.
The issue ...
4
votes
2
answers
11k
views
Missing .so file lib when building in App Bundle
I'm trying to release an app on the Playstore that includes .so lib files. When I try to debug it, the app works fine. But when I try to release it and upload it on the PlayStore via .aab and install ...
1
vote
1
answer
2k
views
Android Studio Error Message: Use Of Undeclared Identifier 'accept4'
the jni folder not appear in android studio and after build only java folder get build.
as you can see the jni folder appear in explorer but not inside android studio.
EDIT:
so after i added this in ...
0
votes
0
answers
169
views
How can i reduce the size of .so libraries in 64-bit apk?
Here is my case, the 32-bit .apk's size is 65MB, and the 64-bit .apk's size is 86MB!
It is too large. What I have done is only change the abi configuration in build.gragle.
Can anyone help me?
There ...
1
vote
0
answers
498
views
Using external non-Android Java library in Android: couldn't find .so file and so on
I'm trying to build a template Android app using Grammatical Framework's Java bindings (however, I don't think what Java code I'm using in particular actually matters. Let's just say I'm trying to use ...
1
vote
2
answers
16k
views
how to fix Android Native Crash from libc.so, libart.so
Our App does not contain any c/c++ code, while we use some third part sdk who contains .so
Now, we found a big percent native crash?
we can not find useful info to get which sdk to bear the ...
1
vote
1
answer
351
views
Dexguard release build throws error: java.lang.UnsatisfiedLinkError: dlopen failed: library "libsuprema_libusb.so" not found
I am trying to make dexguard release build having libraries .so files so when I attach the debugger
adb logcat throws exception:
java.lang.UnsatisfiedLinkError: dlopen failed: library "...
2
votes
0
answers
3k
views
java.lang.UnsatisfiedLinkError: dlopen failed: library ".so" needed or dlopened by ".so" is not accessible for the namespace "classloader-namespace"
I'm working on an Android Project and I need to add a (.jar) library awesomework.jar .
When I add the library and run the project in my Android device I receive the below error.
java.lang....
-2
votes
1
answer
355
views
Why is it tough to find a dummy .so file online?
I need a dummy .so file in order to call it's functions in android. The dummy .so file could be anything from doing addition, subtraction, etc.
When searched online, All I find is "What is .so ...
0
votes
1
answer
977
views
Im failing to build .so file for android from FFMPEG
I tried many times with different versions of ffmpeg but failed eventually. I dont know how they wrote .sh file to configure different tools. Here are some .sh files i tried and it all failed. Either ...
1
vote
1
answer
431
views
This release is not compliant with the Google Play 64-bit requirement error
Was trying to upload my android application built in Android Studio on playstore but i get that error. Searched everywhere tried all possible solutions suggested but no success.
My application uses 2 ...
3
votes
1
answer
5k
views
How to Import a prebuilt *.so library and call it from the new project?
I'm currently working on a project which will use a prebuilt shared library. But I'm quite confused on the process of importing a prebuilt library, as well as calling the methods in the prebuilt from ...
0
votes
2
answers
1k
views
How to add .so file in Android.mk file?
I am importing a .aar file as a dependency in my android project and have added this to Android.mk file.
Now internally this file has dependency on some .so files which its not able to pick up ...
0
votes
0
answers
201
views
How do I use the .so file from .aar of a library module in another application module?
I have a .so file built into the .aar of a library project. How do I use this .so file and only the .so file in another application module of the same project?
0
votes
0
answers
71
views
android shows blank white screen when 64bit .so file loading... no issue with 32bit so file
W/System.err: Native code library failed to load.
ndk {
abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64','armeabi'
}
when i put 64bit .so file simulator showing just a white ...
0
votes
1
answer
853
views
is there any way to use compiled 32 bit native library as 64 bit lib
I'm trying to publish my old android application on Play Store and facing issues with 64-bit native lib requirements.
So I have my Android Studio project written in Java and it does have one native ...
0
votes
0
answers
305
views
How to load .so file inside linux kernel file
I am trying to build my custom library in form of .so file in android kernel and then load that library in one of the kernel config files and use library functions.
I am unable to do it. I an not ...
0
votes
0
answers
342
views
How to use the imported .so library code in Android Studio?
I added some C libraries in my Android project. According to some guides I found, I just have to create the folders and put the libraries there. According to the guidelines it is not necessary to do ...
4
votes
1
answer
23k
views
How to fix "Could not find toolchain file" "CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage" cmake libjpeg-turbo.so?
I am working on generating libjpeg-turbo.so files for different CPU architectures.
If I execute the below cmake in my build folder I am getting this error even though the toolchain file is present ...
0
votes
0
answers
1k
views
How to generate libjpeg-turbo.so files for different CPU architectures on Ubuntu 16.04?
I have downloaded the libjpeg-turbo library from https://github.com/libjpeg-turbo/libjpeg-turbo/ and executed the below CMake commands in Ubuntu 16.04:
$ cd {path of my libjpeg-turbo library}
$ cmake ...
4
votes
2
answers
11k
views
Can't add a *.so library in Android Studio. JniLibs directory don't work
I researched a lot for an answer of my question, but I didn't find anything.
I can't add the .so library in my project.
I put the library in /app/src/main/jniLibs/arm64-v8a. The project will complile ...
0
votes
0
answers
75
views
How to version up android app to x64 architecture?
Currently, I'm maintaining an Android project, my project use some native library (.so file in "armeabi-v7a" architecture). Recently I receive the warning of Google that my app need to be versioned up ...
1
vote
1
answer
374
views
How to find which dependency imports specific so file
I'm trying to get my app complaint to the 64-bit standard as Google expects: https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html
I analyzed my release apk and found ...
1
vote
2
answers
2k
views
Generate a 64 bit .so file of GDAL Library
I used the GDAL Library in my application and it has been working properly. The Google play service announced that they upload only 64-bit compliant APK after 1st Aug 2019. So I rendered the project ...
3
votes
1
answer
1k
views
"ELF built without Position Independent Executable (PIE) flag " for mips64 architecture but not for other architectures
I have generated a shared library .so file I did not use any flags -fpic in CMakeLists.txt
But one of the tool reported "ELF built without Position Independent Executable (PIE) flag " for mips64 ...
1
vote
1
answer
2k
views
Calling .SO functions from a java Class using JNI
I know this might seems weird, but, right now I have a .SO (Shared Object in C) and have to make use in my Android Project.
Now My requirement is to call the functions that are in .SO directly in ...
3
votes
2
answers
2k
views
No implementation found when i use .so file android
i want to use native library from other project. here is my library.
it is my first time to use ndk in android studio. i succedd to load library .so, but failed when i want to access the file. here ...
5
votes
1
answer
4k
views
C++ shared libraries have duplicate symbols
I am new to c++ symbol tables and libraries, wanted to understand the behavior of symbol table.
We are having an android application with native support on it. In process of analyzing symbol tables of ...
1
vote
1
answer
657
views
UVCCamera error: registerNativeMethods: class'com/serenegiant/usb/UVCCamera' not found
I try loadLibrary UVCCamera, but get ClassNotFoundException when i Connecting device.
This ClassNotFoundException is can't find UVCCamera.so?
or can't find method or class from UVCCamera?
Or what ...