{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3925","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-native","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3925/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3925/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3925/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3925","id":133227472,"number":3925,"title":"Failed to load source simple-tiles","user":{"login":"melihcolpan","id":5119501,"avatar_url":"https://avatars.githubusercontent.com/u/5119501?v=3","gravatar_id":"","url":"https://api.github.com/users/melihcolpan","html_url":"https://github.com/melihcolpan","followers_url":"https://api.github.com/users/melihcolpan/followers","following_url":"https://api.github.com/users/melihcolpan/following{/other_user}","gists_url":"https://api.github.com/users/melihcolpan/gists{/gist_id}","starred_url":"https://api.github.com/users/melihcolpan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melihcolpan/subscriptions","organizations_url":"https://api.github.com/users/melihcolpan/orgs","repos_url":"https://api.github.com/users/melihcolpan/repos","events_url":"https://api.github.com/users/melihcolpan/events{/privacy}","received_events_url":"https://api.github.com/users/melihcolpan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/Android","name":"Android","color":"5319e7"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/labels/support","name":"support","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-12T12:19:03Z","updated_at":"2016-02-13T01:22:51Z","closed_at":"2016-02-13T01:22:51Z","body":"My code is default codes. I am trying to use style from url. This is my json file link:\r\nhttps://storage.googleapis.com/akfiha_public_img/localstyle.json\r\nI want to add a new tile on my mpa but every time I get black screen. Actually I think there is a map on background cause when I add a marker, I can see the marker but the map isn't shown. I f I use normal default style like:\r\n\r\nmapView.setStyleUrl(Style.MAPBOX_STREETS);\r\n\r\nIt is working for this option so I mean that my api key is working. But nevertheless I got this error:\r\n\r\nE/mbgl: {Map}[ParseStyle]: Invalid glyph URL\r\nA/libc: Fatal signal 6 (SIGABRT) at 0x00006a7e (code=-6), thread 27277 (com.test_mapbox)\r\nE/mbgl: {Map}[Style]: Failed to load source simple-tiles: \r\nE/mbgl: {Map}[Style]: Failed to load source simple-tiles: \r\n\r\nScreenshot:\r\nhttps://storage.googleapis.com/akfiha_public_img/screen1.jpg\r\n\r\n```\r\nimport com.mapbox.mapboxsdk.annotations.MarkerOptions;\r\nimport com.mapbox.mapboxsdk.constants.Style;\r\nimport com.mapbox.mapboxsdk.geometry.LatLng;\r\nimport com.mapbox.mapboxsdk.views.MapView;\r\n\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\n\r\npublic class MainActivity extends Activity {\r\n\r\n    private MapView mapView = null;\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_main);\r\n\r\n        mapView = (MapView) findViewById(R.id.mapboxMapView);\r\n\r\n        mapView.setStyleUrl(Style.LIGHT);\r\n\r\n        mapView.addMarker(new MarkerOptions().position(new LatLng(40.73581, -73.99155)));\r\n        mapView.setCenterCoordinate(new LatLng(40.73581, -73.99155));\r\n        mapView.setZoomLevel(5);\r\n        mapView.onCreate(savedInstanceState);\r\n    }\r\n\r\n    @Override\r\n    protected void onStart() {\r\n        super.onStart();\r\n        mapView.onStart();\r\n    }\r\n\r\n    @Override\r\n    public void onResume() {\r\n        super.onResume();\r\n        mapView.onResume();\r\n    }\r\n\r\n    @Override\r\n    public void onPause()  {\r\n        super.onPause();\r\n        mapView.onPause();\r\n    }\r\n\r\n    @Override\r\n    protected void onStop() {\r\n        super.onStop();\r\n        mapView.onStop();\r\n    }\r\n\r\n\r\n    @Override\r\n    protected void onDestroy() {\r\n        super.onDestroy();\r\n        mapView.onDestroy();\r\n    }\r\n\r\n    @Override\r\n    protected void onSaveInstanceState(Bundle outState) {\r\n        super.onSaveInstanceState(outState);\r\n        mapView.onSaveInstanceState(outState);\r\n    }\r\n}\r\n```\r\n\r\nManifest file:\r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    package=\"map.m_society.com.test_mapbox\">\r\n\r\n    <uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />\r\n    <uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />\r\n\r\n    <uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />\r\n    <uses-permission android:name=\"android.permission.INTERNET\" />\r\n\r\n    <application\r\n        android:allowBackup=\"true\"\r\n        android:icon=\"@mipmap/ic_launcher\"\r\n        android:label=\"@string/app_name\"\r\n        android:supportsRtl=\"true\"\r\n        android:theme=\"@style/AppTheme\">\r\n        <activity\r\n            android:name=\".MainActivity\"\r\n            android:label=\"@string/app_name\"\r\n            android:theme=\"@style/AppTheme.NoActionBar\">\r\n            <intent-filter>\r\n                <action android:name=\"android.intent.action.MAIN\" />\r\n\r\n                <category android:name=\"android.intent.category.LAUNCHER\" />\r\n            </intent-filter>\r\n        </activity>\r\n    </application>\r\n\r\n</manifest>\r\n```\r\n\r\nLayout:\r\n\r\n```\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    xmlns:mapbox=\"http://schemas.android.com/apk/res-auto\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\"\r\n    tools:context=\".MainActivity\">\r\n\r\n    <com.mapbox.mapboxsdk.views.MapView\r\n        android:id=\"@+id/mapboxMapView\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        mapbox:access_token=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\r\n        />\r\n\r\n</RelativeLayout>\r\n```\r\n\r\nMy gradle:\r\n\r\n```\r\napply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 23\r\n    buildToolsVersion \"23.0.2\"\r\n\r\n    defaultConfig {\r\n        applicationId \"map.m_society.com.test_mapbox\"\r\n        minSdkVersion 16\r\n        targetSdkVersion 23\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    testCompile 'junit:junit:4.12'\r\n    compile 'com.android.support:appcompat-v7:23.1.1'\r\n    compile 'com.android.support:design:23.1.1'\r\n\r\n    compile ('com.mapbox.mapboxsdk:mapbox-android-sdk:3.2.0@aar'){\r\n        transitive=true\r\n    }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/183552716","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/3925#issuecomment-183552716","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/3925","id":183552716,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T01:22:51Z","updated_at":"2016-02-13T01:22:51Z","body":"The \"url\" property for sources needs to point to a tileset URL. But `mapbox://styles/cdagli/cikjdvql50063axkilqpnzhz9` is a _style_ URL. If you want to load the style \"mapbox://styles/cdagli/cikjdvql50063axkilqpnzhz9\", use:\r\n\r\n```\r\nmapView.setStyleUrl(\"mapbox://styles/cdagli/cikjdvql50063axkilqpnzhz9\");\r\n```"}}