-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Black screen, not show the map #2802
Comments
@LuisBotero: Linking issue (#2513) with same problem. |
The code are calling the different lifecycle methods correctly, onCreate, onStart, onResume, etc |
@LuisBotero this is great info to have, thank you for that! |
@LuisBotero Can you try #2810 to see if it fixes this issue? |
@ljbade I'm still having the same problem, the map is not displayed, I tried with versions 2.1.0 and 2.2.0 of MapBox and none have worked for me. |
@LuisBotero: |
@LuisBotero We just released a new SNAPSHOT from our testing in #2817. Please feel free to give it a shot to make sure we were able to solve the problem. Instructions on how to install it are available at https://www.mapbox.com/android-sdk/#gradle. Thanks again for reporting this issue and for using the SDK! |
@bleege I'm still having trouble running my code. The map still shows black screen on my phone and the AVD stops working when I run my application with the map. Am i doing something wrong?. Why my map does not work? |
Thank you for sharing your code, It seems that your Gradle is not using the newer version of the SNAPSHOT but rather a cached one. The results you are describing are the same as before the fix of @ljbade for 4.x devices . Could you try doing a |
@LuisBotero I created an issue for the layout editor bug in #2830
|
@LuisBotero Thanks for testing it out. A couple of things to try:
To force dependency updates: cd mapbox-gl-native/android/
./gradlew clean --refresh-dependencies |
I have the same issue. Bleege, tried your instructions but no luck. |
@LuisBotero @Ernest95 Thanks for trying to test the SNAPSHOT. I created a simple app (see link below) that shows how to add the SNAPSHOT to an app. Hopefully this helps! |
I'm still having these issue. It works on genymotion virtual devices but shows black screen on all android devices. |
Awesome @LuisBotero! Thanks again for bringing this to our attention so that we could fix it. We really appreciate it! 🚀 🚀 |
Hi have a black screen after execute
Using com.mapbox.mapboxsdk:mapbox-android-sdk:3.2.0@aar |
Hello, I had the same problem, I saw the comment of Pasha0093 I noticed that I was using a "animateCamera" in my onCreate() : using : com.mapbox.mapboxsdk:mapbox-android-sdk:3.2.0@aar
I deleted this animateCamera in my onCreate() and after that I did not have black screen But also I use animateCamera for each new location of user (I've not delete it)
|
try move camera but it is without animation , about snapshot i cant integrate it in my project |
|
I changed this : by this :
the black screen remains for 1 to 2 seconds, then the map is comeback |
This happens to me when you try to move the camera before the mapview is fully loaded. |
This should not occur with |
I started having issue with seen black screen instead of the tiles. It turned out that the app was reinstalled on my phone, so it lost the tiles that were previously loaded, and since my phone wasn't connected to any internet, the tiles were not been downloaded. A bit stupid, but I wanted to comment this here in case someone else gets to this page because they might be doing the same =) |
In China, VPN is required to visit mapbox server. Otherwise the screen is black. Do you have a local server? |
@Insane-neal, yes we do, see https://www.mapbox.cn/, reach out to support for more details |
cc: @chriswu42 |
@Insane-neal we cannot guarantee complete stability hitting our |
@chriswu42 Thanks for the reply. I dont know how it works. So I have submitted a request, should someone contact me? It's been a day and nothing happens till now. |
@Insane-neal we currently don't provide free API access to our |
When I try to open the map, the screen goes black, and never the map is displayed.
I tried doing a new application in Android Studio and I downloaded the demo of the Play Store, I have the same problem in both applications.
I'm working on Android version 4.2.2.
The text was updated successfully, but these errors were encountered: