The example app (v8.0.0-rc1) crashes on an emulator with API level R
See original GitHub issueDescribe the bug
The example app crashes while loading on an android virtual device with API R (Pixel XL API R).
The following is the output of adb logcat *:E
03-18 23:54:38.134 2067 2319 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
03-18 23:54:38.326 12024 12024 E SoLoader: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:38.334 12024 12024 E SoLoader: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:38.350 12024 12024 E SoLoader: couldn't find DSO to load: libjscexecutor.so caused by: couldn't find DSO to load: libfb.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:38.410 2067 2067 E Layer : [Surface(name=ActivityRecord{756b77a u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity)/@0x41480aa - animation-leash#0] No local sync point found
03-18 23:54:38.410 2067 2067 E Layer : [Surface(name=ActivityRecord{83f5470 u0 com.rnmapboxglexample/.MainActivity)/@0xaaec2a3 - animation-leash#0] No local sync point found
03-18 23:54:38.434 2067 2067 E Layer : [Surface(name=ActivityRecord{756b77a u0 com.google.android.apps.nexuslauncher/.NexusLauncherActivity)/@0x41480aa - animation-leash#0] No local sync point found
03-18 23:54:38.434 2067 2067 E Layer : [Surface(name=ActivityRecord{83f5470 u0 com.rnmapboxglexample/.MainActivity)/@0xaaec2a3 - animation-leash#0] No local sync point found
03-18 23:54:39.215 2275 2397 E InputDispatcher: channel '5e48721 Splash Screen com.rnmapboxglexample (server)' ~ Channel is unrecoverably broken and will be disposed!
03-18 23:54:39.348 2108 2197 E IPCThreadState: binder thread pool (1 threads) starved for 138 ms
03-18 23:54:40.008 12024 12061 E SoLoader: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:40.013 12024 12061 E SoLoader: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:40.017 12024 12061 E SoLoader: couldn't find DSO to load: libglog_init.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:40.019 12024 12061 E SoLoader: couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libglog_init.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
03-18 23:54:40.032 12024 12061 E AndroidRuntime: Process: com.rnmapboxglexample, PID: 12024
03-18 23:54:40.032 12024 12061 E AndroidRuntime: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libreactnativejni.so caused by: couldn't find DSO to load: libglog_init.so caused by: couldn't find DSO to load: libglog.so caused by: couldn't find DSO to load: libc++_shared.so caused by: dlopen failed: "/data/user/0/com.rnmapboxglexample/lib-main/libc++_shared.so" is for EM_ARM (40) instead of EM_386 (3)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:789)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:639)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:577)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:525)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.react.bridge.ReactBridge.staticInit(ReactBridge.java:31)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.react.bridge.Inspector.<clinit>(Inspector.java:19)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.react.bridge.Inspector.getPages(Inspector.java:26)
03-18 23:54:40.032 12024 12061 E AndroidRuntime: at com.facebook.react.devsupport.InspectorPackagerConnection.getPages(InspectorPacka
03-18 23:54:40.150 2275 2397 E InputDispatcher: channel 'ef610da PopupWindow:35efacf (server)' ~ Channel is unrecoverably broken and will be disposed!
03-18 23:54:40.151 2275 2397 E InputDispatcher: channel 'a0d2ecd com.rnmapboxglexample/com.rnmapboxglexample.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
To Reproduce Run the example app on an Android Virtual Device with API R.
Expected behavior The example app to run without crashing.
Versions (please complete the following information):
- Platform: Android
- Device: Pixel XL
- Emulator/ Simulator: yes
- OS: API level R
- SDK Version: 8.0.0-rc1
- React Native Version: 0.61.5
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (7 by maintainers)
Top Results From Across the Web
The example app (v8.0.0-rc1) crashes on an emulator with API ...
The example app crashes while loading on an android virtual device with API R (Pixel XL API R). The following is the output...
Read more >Android app crashes in the API26 emulator - runs ok in API25 ...
When I try to run it in an API26 emulator (Android 8.0) the app crashes immediately on launch, with the message "AboutMyJourney has...
Read more >Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >Android crashes every time with the new VS for Mac 2019
After this the debugging stops and the app crashes. fixed in: visual studio 2019 for mac version 8.0.4Visual Studio for Macandroidvisual studio for...
Read more >How to Install Android Studio IDE & SDK and Get Started with ...
Once the progress bar indicates completion, a working hello-world app is created by default. Step 2: Setup Emulator (aka Android Virtual Device or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a workaround add
to here:
https://github.com/react-native-mapbox-gl/maps/blob/8d0144ada23b57884d8bdbaa0243b1e57ba399f9/example/android/app/build.gradle#L130-L136
@mfazekas , seems a new native android version is out for mapbox with the fix: https://github.com/mapbox/mapbox-gl-native-android/issues/111#issuecomment-625579031
Any plans on updating the react-native repo to pull the latest android version for mapbox? Thanks!!