Skip to content

Instantly share code, notes, and snippets.

@mfazekas
Created April 2, 2020 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfazekas/c593726e061a59d265835ead1c5db0dd to your computer and use it in GitHub Desktop.
Save mfazekas/c593726e061a59d265835ead1c5db0dd to your computer and use it in GitHub Desktop.
lib-main.so arch issue
```
2020-04-02 11:21:15.798 10842-10842/? I/mapboxglexampl: Not late-enabling -Xcheck:jni (already on)
2020-04-02 11:21:15.855 10842-10842/? I/mapboxglexampl: Unquickening 13 vdex files!
2020-04-02 11:21:15.860 10842-10842/? W/mapboxglexampl: Unexpected CPU variant for X86 using defaults: x86
2020-04-02 11:21:16.447 10842-10842/com.rnmapboxglexample I/mapboxglexampl: The ClassLoaderContext is a special shared library.
2020-04-02 11:21:17.211 10842-10842/com.rnmapboxglexample D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-04-02 11:21:17.212 10842-10842/com.rnmapboxglexample D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2020-04-02 11:21:17.474 10842-10842/com.rnmapboxglexample D/SoLoader: init start
2020-04-02 11:21:17.478 10842-10842/com.rnmapboxglexample D/SoLoader: adding system library source: /vendor/lib
2020-04-02 11:21:17.479 10842-10842/com.rnmapboxglexample D/SoLoader: adding system library source: /system/lib
2020-04-02 11:21:17.484 10842-10842/com.rnmapboxglexample D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86 flags = 0]
2020-04-02 11:21:17.494 10842-10842/com.rnmapboxglexample D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/user/0/com.rnmapboxglexample/lib-main flags = 1]
2020-04-02 11:21:17.494 10842-10842/com.rnmapboxglexample D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
2020-04-02 11:21:17.495 10842-10842/com.rnmapboxglexample D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2]
2020-04-02 11:21:17.495 10842-10842/com.rnmapboxglexample D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86 flags = 0]
2020-04-02 11:21:17.495 10842-10842/com.rnmapboxglexample D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/user/0/com.rnmapboxglexample/lib-main flags = 1]
2020-04-02 11:21:17.499 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: locked dso store /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:17.515 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: deps mismatch on deps store: regenerating
2020-04-02 11:21:17.515 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: so store dirty: regenerating
2020-04-02 11:21:18.064 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libc++_shared.so: sysdir file length is 997224, but the file is 575328 bytes long in the APK
2020-04-02 11:21:18.065 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libfb.so: sysdir file length is 165648, but the file is 140976 bytes long in the APK
2020-04-02 11:21:18.066 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libfolly_futures.so: sysdir file length is 313740, but the file is 325848 bytes long in the APK
2020-04-02 11:21:18.067 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libfolly_json.so: sysdir file length is 321204, but the file is 366244 bytes long in the APK
2020-04-02 11:21:18.067 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libglog.so: sysdir file length is 149248, but the file is 104140 bytes long in the APK
2020-04-02 11:21:18.068 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libglog_init.so: sysdir file length is 30388, but the file is 18044 bytes long in the APK
2020-04-02 11:21:18.068 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libimagepipeline.so: sysdir file length is 9668, but the file is 9728 bytes long in the APK
2020-04-02 11:21:18.068 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libjsc.so: sysdir file length is 9134644, but the file is 8753740 bytes long in the APK
2020-04-02 11:21:18.069 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libjscexecutor.so: sysdir file length is 304828, but the file is 239276 bytes long in the APK
2020-04-02 11:21:18.069 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libjsijniprofiler.so: sysdir file length is 34476, but the file is 26236 bytes long in the APK
2020-04-02 11:21:18.070 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libjsinspector.so: sysdir file length is 42668, but the file is 34428 bytes long in the APK
2020-04-02 11:21:18.070 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libmapbox-gl.so: sysdir file length is 4485956, but the file is 2986784 bytes long in the APK
2020-04-02 11:21:18.073 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libnative-filters.so: sysdir file length is 13704, but the file is 13764 bytes long in the APK
2020-04-02 11:21:18.074 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libnative-imagetranscoder.so: sysdir file length is 595460, but the file is 300544 bytes long in the APK
2020-04-02 11:21:18.074 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libreactnativejni.so: sysdir file length is 870132, but the file is 829104 bytes long in the APK
2020-04-02 11:21:18.075 10842-10842/com.rnmapboxglexample D/ApkSoSource: allowing consideration of /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86/libyoga.so: sysdir file length is 235180, but the file is 145020 bytes long in the APK
2020-04-02 11:21:18.077 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource
2020-04-02 11:21:18.082 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libc++_shared.so
2020-04-02 11:21:18.169 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libfb.so
2020-04-02 11:21:18.176 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libfolly_futures.so
2020-04-02 11:21:18.196 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libfolly_json.so
2020-04-02 11:21:18.206 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libglog.so
2020-04-02 11:21:18.210 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libglog_init.so
2020-04-02 11:21:18.214 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libimagepipeline.so
2020-04-02 11:21:18.221 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libjsc.so
2020-04-02 11:21:18.760 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libjscexecutor.so
2020-04-02 11:21:18.778 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libjsijniprofiler.so
2020-04-02 11:21:18.785 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libjsinspector.so
2020-04-02 11:21:18.788 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libmapbox-gl.so
2020-04-02 11:21:18.853 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libnative-filters.so
2020-04-02 11:21:18.854 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libnative-imagetranscoder.so
2020-04-02 11:21:18.861 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libreactnativejni.so
2020-04-02 11:21:18.879 10842-10842/com.rnmapboxglexample I/fb-UnpackingSoSource: extracting DSO libyoga.so
2020-04-02 11:21:18.883 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: Finished regenerating DSO store com.facebook.soloader.ApkSoSource
2020-04-02 11:21:18.884 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: starting syncer worker
2020-04-02 11:21:18.984 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.rnmapboxglexample/lib-main (from syncer thread)
2020-04-02 11:21:18.985 10842-10842/com.rnmapboxglexample V/fb-UnpackingSoSource: not releasing dso store lock for /data/user/0/com.rnmapboxglexample/lib-main (syncer thread started)
2020-04-02 11:21:18.985 10842-10842/com.rnmapboxglexample D/SoLoader: init finish: 4 SO sources prepared
2020-04-02 11:21:18.985 10842-10842/com.rnmapboxglexample D/SoLoader: init exiting
2020-04-02 11:21:18.986 10842-10842/com.rnmapboxglexample W/System.err: java.lang.ClassNotFoundException: com.facebook.flipper.ReactNativeFlipper
2020-04-02 11:21:18.986 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.Class.classForName(Native Method)
2020-04-02 11:21:18.986 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.Class.forName(Class.java:454)
2020-04-02 11:21:18.986 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.Class.forName(Class.java:379)
2020-04-02 11:21:18.987 10842-10842/com.rnmapboxglexample W/System.err: at com.rnmapboxglexample.MainApplication.initializeFlipper(MainApplication.java:61)
2020-04-02 11:21:18.987 10842-10842/com.rnmapboxglexample W/System.err: at com.rnmapboxglexample.MainApplication.onCreate(MainApplication.java:46)
2020-04-02 11:21:18.987 10842-10842/com.rnmapboxglexample W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1192)
2020-04-02 11:21:18.987 10842-10842/com.rnmapboxglexample W/System.err: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6550)
2020-04-02 11:21:18.988 10842-10842/com.rnmapboxglexample W/System.err: at android.app.ActivityThread.access$1300(ActivityThread.java:229)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1885)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at android.os.Handler.dispatchMessage(Handler.java:106)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at android.os.Looper.loop(Looper.java:216)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7464)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2020-04-02 11:21:18.989 10842-10842/com.rnmapboxglexample W/System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
2020-04-02 11:21:18.990 10842-10842/com.rnmapboxglexample W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
2020-04-02 11:21:18.990 10842-10842/com.rnmapboxglexample W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.facebook.flipper.ReactNativeFlipper" on path: DexPathList[[zip file "/data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/base.apk"],nativeLibraryDirectories=[/data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86, /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/base.apk!/lib/x86, /system/lib, /system_ext/lib, /product/lib]]
2020-04-02 11:21:18.990 10842-10842/com.rnmapboxglexample W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:202)
2020-04-02 11:21:18.990 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2020-04-02 11:21:18.991 10842-10842/com.rnmapboxglexample W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2020-04-02 11:21:18.991 10842-10842/com.rnmapboxglexample W/System.err: ... 15 more
2020-04-02 11:21:19.012 10842-10884/com.rnmapboxglexample D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so
2020-04-02 11:21:19.016 10842-10884/com.rnmapboxglexample D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so
2020-04-02 11:21:19.021 10842-10884/com.rnmapboxglexample D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so
2020-04-02 11:21:19.139 10842-10842/com.rnmapboxglexample D/SoLoader: About to load: libjscexecutor.so
2020-04-02 11:21:19.139 10842-10842/com.rnmapboxglexample D/SoLoader: libjscexecutor.so found on /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:19.150 10842-10842/com.rnmapboxglexample D/SoLoader: Loading lib dependencies: [libdl.so, libfb.so, libreactnativejni.so, libjsc.so, libjsinspector.so, libfolly_json.so, libglog.so, libc++_shared.so, liblog.so, libc.so, libm.so]
2020-04-02 11:21:19.151 10842-10842/com.rnmapboxglexample D/SoLoader: About to load: libdl.so
2020-04-02 11:21:19.151 10842-10842/com.rnmapboxglexample D/SoLoader: libdl.so not found on /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: libdl.so not found on /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: libdl.so not found on /vendor/lib
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: libdl.so found on /system/lib
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: libdl.so loaded implicitly
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: Loaded: libdl.so
2020-04-02 11:21:19.152 10842-10842/com.rnmapboxglexample D/SoLoader: About to load: libfb.so
2020-04-02 11:21:19.153 10842-10842/com.rnmapboxglexample D/SoLoader: libfb.so found on /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:19.161 10842-10842/com.rnmapboxglexample D/SoLoader: Loading lib dependencies: [libdl.so, libc++_shared.so, liblog.so, libandroid.so, libc.so, libm.so]
2020-04-02 11:21:19.161 10842-10842/com.rnmapboxglexample D/SoLoader: About to load: libc++_shared.so
2020-04-02 11:21:19.161 10842-10842/com.rnmapboxglexample D/SoLoader: libc++_shared.so found on /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:19.166 10842-10842/com.rnmapboxglexample D/SoLoader: Loading lib dependencies: [libc.so, libdl.so]
2020-04-02 11:21:19.166 10842-10842/com.rnmapboxglexample D/SoLoader: About to load: libc.so
2020-04-02 11:21:19.167 10842-10842/com.rnmapboxglexample D/SoLoader: libc.so not found on /data/user/0/com.rnmapboxglexample/lib-main
2020-04-02 11:21:19.167 10842-10842/com.rnmapboxglexample D/SoLoader: libc.so not found on /data/app/~~fFkI_5OwU8XV6z9_a0xypA==/com.rnmapboxglexample-Lwh6zsqdqwYFSjqSz5i5rA==/lib/x86
2020-04-02 11:21:19.167 10842-10842/com.rnmapboxglexample D/SoLoader: libc.so not found on /vendor/lib
2020-04-02 11:21:19.168 10842-10842/com.rnmapboxglexample D/SoLoader: libc.so found on /system/lib
2020-04-02 11:21:19.168 10842-10842/com.rnmapboxglexample D/SoLoader: libc.so loaded implicitly
2020-04-02 11:21:19.168 10842-10842/com.rnmapboxglexample D/SoLoader: Loaded: libc.so
2020-04-02 11:21:19.169 10842-10842/com.rnmapboxglexample W/System.err: java.lang.UnsatisfiedLinkError: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment