-
Notifications
You must be signed in to change notification settings - Fork 192
FileDescriptor must not be null,Failed to load native library error #22
Comments
blue
hi you get any updates about this issue? |
NativeLibraries.java defines the library files load when app initialize. |
yes my app crash with Failed to load native library.can you please tell how to solve this issue? |
My app crash with 'Failed to load native library'. what can i do? |
solution ? |
@s9iper1 No solution at this time. Still woking on it. but library load success on android O. |
@s9iper1 @flickstree @kuoruan libchromium_android_linker.so is complied with a own fork crazy_linker.gyp instead of one in standard ndk. so i guessed when we use ./gradlew assemble to build this project ndk will do something to libchromium_android_linker.so if we had set "ANDROID_NDK" OR "ANDROID_NDK_HOME". try: My project is build with jenkins in sever machine so my final solution is to add these code to gradlew's header. `#!/usr/bin/env bash echo "================set ndk path to null to void compile libchrom_linker.so===================" |
@DickCowBoy Great! Thank you for the information. |
While launching this app on Samsung device ( Galaxy On7) app is crashing immediately with following error.
Logs related to crash is as follows:--
1/org.chromium.chrome:privileged_process1 E/cr_ChildProcessService: Failed to load native library.
java.lang.NullPointerException: FileDescriptor must not be null
at android.os.ParcelFileDescriptor.(ParcelFileDescriptor.java:176)
at android.os.ParcelFileDescriptor$2.createFromParcel(ParcelFileDescriptor.java:953)
at android.os.ParcelFileDescriptor$2.createFromParcel(ParcelFileDescriptor.java:944)
at org.chromium.base.library_loader.Linker$LibInfo.(Linker.java:666)
at org.chromium.base.library_loader.Linker$LibInfo$1.createFromParcel(Linker.java:700)
at org.chromium.base.library_loader.Linker$LibInfo$1.createFromParcel(Linker.java:697)
The text was updated successfully, but these errors were encountered: