My app is running well when I added it in data/app location but when I pushed it in system/app it's not working properly, it throws the error
08-08 05:15:35.451: E/VLC/LibVLC(5116): Can't load vlcjni library: java.lang.UnsatisfiedLinkError: Couldn't load vlcjni from loader
dalvik.system.PathClassLoader[dexPath=/system/app/myapp.apk,libraryPath=/data/app-lib/myapp]: findLibrary returned null
I have successfully compiled libVlc for android and it's working fine except I mentioned above. Do I need to sign the myapp.apk with firmware key? Or is there any set of permissions that I need to add?
Related
I want to write fm radio for my phone. I decompiled it,and noticed,what it use libfmjni.so,which i found in system folder. But when i try to use it,i get exception:
java.lang.UnsatisfiedLinkError: dlopen failed: library "/system/lib/libfmjni.so" needed or dlopened by "/system/lib/libnativeloader.so" is not accessible for the namespace "classloader-namespace"
I tryed to load it in jni\armeAbe folder,but i have the same effect. My phone is rooted. Also i not understand,why in decompiled app (i did the same),it load fmjni instead of libfmjni. Thanks everybody for any help.
I'm trying to use the new Android App Bundles.
I run some test locally on my devices, and everything works correctly. However, once deployed to production, I am starting to see a few errors like this:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/xyz/base.apk"],nativeLibraryDirectories=[/data/app/xyz/lib/arm, /vendor/lib, /system/lib]]] couldn't find "libsqlite3x.so"
java.lang.Runtime.loadLibrary (Runtime.java)
java.lang.System.loadLibrary (System.java)
io.requery.android.database.sqlite.SQLiteDatabase.<clinit> (SQLiteDatabase.java:86)
io.requery.android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked (SQLiteOpenHelper.java:241)
io.requery.android.database.sqlite.SQLiteOpenHelper.getReadableDatabase (SQLiteOpenHelper.java:199)
...
The error states that a library I'm using (requery/sqlite-android) cannot find the .so file that it needs.
This seems strange, since I checked with bundletool, and in every APK the file .so is there.
The error happens on two devices: a Samsung Galaxy Note 7 and a
TECNO-J8, running Android 6 and 5 respectively.
According to the Play Store, the error happens for app installed through Google Play, so I doubt the error is related to APK sideloading.
The generated APK bundle includes splits for the following architectures:
splits\base-armeabi_v7a.apk
splits\base-mips.apk
splits\base-arm64_v8a.apk
splits\base-x86_64.apk
splits\base-x86.apk
Do you have any hints?
Even though the installs are reported from Play, this information can easily be spoofed when using adb (which some users have learnt to do for some reason that I don't quite get yet). Those crashes very likely come from sideloads which don't install the config splits in spite of the appearances.
This issue might be related to https://issuetracker.google.com/issues/127691101
It happens on some devices of LG or old Samsung devices where the user has moved the app to the SD Card.
One way of fixing the issue is to use Relinker library to load your native libraries instead of directly calling System.load method.
https://github.com/KeepSafe/ReLinker
Another way is to block the movement of the app to the SD card or by keeping android.bundle.enableUncompressedNativeLibs=false in your gradle.properties file.
#see https://developer.android.com/guide/app-bundle/configure-base#disable_config_apks
disable bundle api split can fix this bug.
add this into your build.gradle file
bundle {
abi {
// This property is set to true by default.
enableSplit = false
}
}
I am working with CsipSimple and try to create an account in local network...the build runs fine....but i can't make my account active....at the beginning of the project run it catches an exception java.lang.UnsatisfiedLinkError.......and it says unable to load native library...I have been searching all day long...i created armeabi-v7a under lib folder....and I have downloaded two .so file from firefox nightly build as descripted in this link.... here but i have same problem....please help me with this
Thrown when an attempt is made to invoke a native for which an implementation could not be found.
http://developer.android.com/reference/java/lang/UnsatisfiedLinkError.html
Please check this link https://stackoverflow.com/a/22121375/1761003
Please do post some code for better reply
I developed applications which use native code. All of a sudden those are not working, giving error "Unsatisfied link error: Couldn't load native library from loader dalvik.System.pathClassLoader, findLibrary returned null. I restarted adt twice. Still getting the same error. Applications which are not using native code, are working fine.
The error implies that the program is not able to find the shared libraries that you would have created.
Which devices did you try it on ?
You can check once if they are available in libs directory of your app . [/data/data/app_id/lib ]. Also check if armv7 support is required and if the directory is there in the libs , is .so present there.
Now it's working. I deleted all my virtual devices and then created a new one. However it's showing "skipped 264 frames. application may be doing too much work on main thread" many times and whenever we press a button, displaying this message in log "error loading /system/media/audio/ui/Effect_Tick.ogg"
thanks.
My Emacs version is 23.3.1, I am want to setup an android develop environment. I download android-mode.el
and modify .emacs to load it;
(add-to-list 'load-path "~/.emacs.d/site-lisp/")
(require 'android-mode)
(custom-set-variables
'(android-mode-avd "test")
'(android-mode-sdk-dir "/opt/android-sdk/"))
when loading that file, it has error:
Warning (initialization): An error occurred while loading `/home/htang/.emacs':
File error: Cannot open load file, cl-lib
I know the cl-lib is new feature since emacs24 or higher, how can I resolve this problem to make it work on my Emacs23.3 version?
You can install cl-lib (for older Emacsen) from GNU ELPA.