-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Android: Unable to load styles.json #719
Comments
I pasted the styles/styles/* of the repo into the styles asset folder, and I'm still getting:
|
I tried loading the bright-v6.json from my own server at I still see the error: 12-12 08:17:40.318 13959-13986/com.mapbox.mapboxgl.app E/Setup﹕ loading style failed: -1 (URL using bad/illegal format or missing URL) |
@hallahan You need to run Note that android-mason is very much WIP and is frequently breaking as we work on fixing all the bugs and getting in merged into the master branch. Watch #676 to see when we get Android GL merged. For more info on your particular bugs see #691. I will be doing more work on Android GL in the next few days. |
Hi @ljbade I'm working on a project that integrates the ability to select openstreetmap features and edit their attributes in an open data kit survey for the American Red Cross. Ideally I'd like to use mapbox vector tiles rather than old school pngs. Im aware that it's a WIP, but if it's close enough to release I may be able to assist. I have good familiarity with vector tiles: https://github.com/SpatialServer/Leaflet.MapboxVectorTile |
Feel free to look into the issue but the bug is in the C++ native layer in case you are not familiar with native development. I hope we will be able to merge but I am currently being held up by bugs caused by stuff that keeps changing in master. It is a bit of a cat and mouse with merging latest master than fixing all the new bugs. I will be putting in a lot more time from January so you should see a lot more progress then. |
Cool. I'm excited about the work you're doing. Im looking forward to the day this is the dominant mobile mapping framework. |
I did git I'm still getting:
|
I also tried to re make android and still the same error. |
hmm |
@hallahan can you gist the full log? |
@hallahan I can't see why you are getting that errors. Have you tried Did you change any files other than MapFragment for the access token? |
I did the clean and rebuild, and it still is the same problem. This time the empty map is white instead of black. |
@hallahan, what phone and Android version are you using? |
Samsung Galaxy S4 GT-I95000 Android version 4.4.2 |
@hallahan Can you try installing this build on your phone: https://www.dropbox.com/s/pddxwqvglkj2mkm/app-debug.apk?dl=0 |
@ljbade I installed your apk. It loads an initial map, but as i pinch to zoom in, the app crashes. |
:-( Can you capture the logcat output? |
Here are the logs from logcat that seem relevent:
|
Here's some more possible relevant logs. Logcat is very verbose...
|
Do you have log output from earlier than the crash? You may need to filter by com.mapbox.mapboxgl.app |
Lemme try again and output stdout to a file... |
OK, well I found this earlier:
|
The app stays alive until the user pinch zooms in. |
I think that last output is just a result of the app being killed. So there is no output that begins with something like You may just want to copy the whole log into a gist so I can work through it. |
Hmm OK, can't see any hint in there as to why it crashes. I will build you an APK with |
@hallahan Can try this debug build: https://www.dropbox.com/s/rg13hvsecbolwoz/app-release.apk?dl=0 |
Your new APK Build is also failing. When I pinch to zoom in, the app crashes.
|
Hmm looks like I am going to have to mess around with GDB to map the crash location back to the source line. It is a strange crash as everything seems to load normally. |
@hallahan I made a new build that has the line numbers in it. If you can get the crash log from this: https://www.dropbox.com/s/awwwji00r0ysts9/app-debug.apk?dl=0 Then I can run it through |
Since I haven't heard an update on this I am going to close it. Feel free to reopen if you wish to continue on this. |
I'm attempting to build the android-mason branch on my Samsung Galaxy S4 via the instructions on the README.md. So far so good. I got it all to compile and build on the phone.
It builds and the app opens when I run it, but the map fragment is blank, no tiles are loaded. It can't find the style file.
I see that we try to get the style by:
However, there is nothing in the assets/styles directory. Where do I get these styles? I suppose I should just drop them in?
I'm looking at #585 and see that a similar problem was encountered and was resolved.
I'm excited to see this work!
The text was updated successfully, but these errors were encountered: