-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grey blank map on Android #1041
Comments
@marcpechaitis thanks for the reply 😄 it's funny but mapbox uses lat/lng the other way around lng/lat |
@mtt87 is this happening on a physical device? I've noticed this happening on emulators but once I put it on a physical device everything works fine |
@nitaliano I haven't tested yet on a physical device, I'll do tonight 👍 That said, it would make the developer experience much worst if the package doesn't work on emulators 😢 |
It's been hit or miss so far with emulators, I have troubles with older emulators but never see a white map on newer emulators (API 26+). Other people have different experiences here, and this is something that this package doesn't have control over. In version |
Interesting I'm using API 25 as I thought it was the suggested one to test with React Native. Gonna try also to upgrade at API 26 👍 |
I need to try API 26 definitely, I was using API 25. I can do it in a few hours 😄 |
Nothing, I've tried with emulator and API 26, still blank grey map. On the other side, testing on a real device it works fine. Any suggestion on how to debug this issue? |
I am also having the same problem but am getting a few log errors
The Following are highlighted in red
|
Happens to me on a Nexus 5 API 23 emulator 😞 |
Just so everyone knows this is a known issue with the native Android SDK, I'm not sure what the exact setup is, but I can see a map on emulators 24+, it can also be due to your Android Studio versions.Once the fixes land in the newer versions of the SDK we will update the repo to use it. For now if you experience this, just multiple different emulators or use your phone for testing to see the map |
Are you using This is the issue in You can also try this comment mapbox/mapbox-gl-native#11266 (comment) |
@nitaliano: My Android Studio version is Thanks for the reference to the upstream issue. @invised's suggestion of switching the renderer worked for me. Although I didn't have "ANGLE (D3D11)" as an option (perhaps a Windows vs. macOS thing? (I'm on macOS)). "SwiftShader" is working for me. Thanks for your amazingly speedy responses. |
I had the EXACT same issue.. Thank you! SwiftShader also worked for me. |
I have the same issue... Could the styles affect the fact that no streets are visible? iOS works perfectly... |
Ok, I had the issue where my map was not showing on Android but worked on iOS... The solution is to add in
Please add this into the documentation, but seems like not a lot of people have had this issue.. But this fixes it.. :) <3 |
I'll send a PR that just updates to 5.5.1 |
Same issue here. Using SwiftShader as renderer also worked for me after rebooting the emulator. |
Just to share my setup (having the same issue). SwiftShader setting does display the map, however the emulator runs very slow, making development not fun... @unicornRainbows: where would one add that line? Thanks in advance |
I just got it to work by updating /node_modules/@mapbox/android/rctmgl/build.gradle (line 31)
|
<Mapbox.MapView It's just showing grey background not map. |
This did the trick! Thanks. @mapbox team: are you working on this? |
I had to change the version to 5.5.3 for this to work for me. AFAIKT, the fix for the underlying issue was part of 5.5.2, so I don't understand why 5.5.1 would work. |
I can confirm that @unicornRainbows and @alexiri solution combined works. You have to add |
the 5.5.3-version-tweak fixed grey maps on a sony testphone (android 8.0.0) for me .. plans to fix in master? |
This is already in master :) closing issue. |
Not really, i'm still having issue when I have to build for android. FAILURE: Build failed with an exception.
Command: /Users/john/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/e961f62d0f15110371bbffdc8b30c676/aapt2-3.2.1-4818971-osx/aapt2 link -I /Users/john/www/devmapper/android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found. /Users/john/.gradle/caches/transforms-1/files-1.1/drawee-1.10.0.aar/9d8374fbf4e72e0fa9bbcfdb88720f8e/res/values/values.xml:3:5-58:857: AAPT: error: resource android:attr/fontVariationSettings not found. /Users/john/.gradle/caches/transforms-1/files-1.1/drawee-1.10.0.aar/9d8374fbf4e72e0fa9bbcfdb88720f8e/res/values/values.xml:3:5-58:857: AAPT: error: resource android:attr/ttcIndex not found. error: failed linking references. |
react-native@0.52.2
react-native-mapbox-gl@master
Testing on Android Simulator v7.1.1
I get a blank grey map.
I'm quite sure I've done the setup correctly (did 3 times) and the map has the same configuration as iOS.
Checking
adb logcat
I can see thisThe text was updated successfully, but these errors were encountered: