Google Maps for Android - Polyline crashing app
<p>I am importing geoJSON data from .jsons files. It works very well with some files but not with others. I thought my files had problems but I tested them on <a href="http://geojsonlint.com/" rel="nofollow" title="geojsonlint">geojson lint</a> as well as <a href="http://geojson.io/#map=2/20.0/0.0" rel="nofollow">geojson.io</a> without issues.</p>

<p>Here is the stack:</p>

<pre><code>FATAL EXCEPTION: main
Process: com.example.andrea.blank_test, PID: 8780
java.lang.NoSuchMethodError: No virtual method isClickable()Z in class Lcom/google/android/gms/maps/model/PolylineOptions; or its super classes (declaration of 'com.google.android.gms.maps.model.PolylineOptions' appears in /data/data/com.example.andrea.blank_test/files/instant-run/dex/slice-dependencies_2c16afb1f7a3d667bc9f1bb08f04b953876fdec1-classes.dex)
    at com.google.maps.android.geojson.GeoJsonLineStringStyle.toPolylineOptions(GeoJsonLineStringStyle.java:167)
    at com.google.maps.android.geojson.GeoJsonRenderer.addLineStringToMap(GeoJsonRenderer.java:297)
    at com.google.maps.android.geojson.GeoJsonRenderer.addFeatureToMap(GeoJsonRenderer.java:238)
    at com.google.maps.android.geojson.GeoJsonRenderer.addFeature(GeoJsonRenderer.java:166)
    at com.google.maps.android.geojson.GeoJsonRenderer.addLayerToMap(GeoJsonRenderer.java:117)
    at com.google.maps.android.geojson.GeoJsonLayer.addLayerToMap(GeoJsonLayer.java:112)
</code></pre>

<p>Here is my very simple code</p>

<pre><code>int d = R.raw.geojson;
try {
    GeoJsonLayer layer = new GeoJsonLayer(map, d,
            getApplicationContext());
    layer.addLayerToMap();
} catch (Exception ex){
    Log.e("hey", ex.toString());
}
</code></pre>

<p><a href="http://geojson.io/#id=gist:anonymous/3a4ec4558d8ceeb6b08f&amp;map=16/42.6353/9.3515" rel="nofollow">And here is one of my JSONs causing that bug</a></p>

<p><a href="https://gist.github.com/Rayjax/5fc761748508499f0f7c" rel="nofollow">build.gradle (project)</a> and <a href="https://gist.github.com/Rayjax/c2043e776cc58495cd55" rel="nofollow">build.gradle(app)</a></p>

<p>Any idea is welcome</p>