You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Google included their own slightly incompatible version of org.json:json in Android, and the Android Gradle plugin automatically excludes dependencies on any other version. Google's implementation of JSONObject is missing the static method getNames(JSONObject). ProGuard minimization detects the missing method and the build fails:
Warning: com.esri.core.geometry.JSONObjectEnumerator: can't find referenced method 'java.lang.String[] getNames(org.json.JSONObject)' in library class org.json.JSONObject
The text was updated successfully, but these errors were encountered:
ProGuard no longer has a problem with it. But I can't find a sample of GeoJSON that doesn't trigger this exception at OperatorImportFromGeoJsonLocal line 194:
// According to the spec, a GeoJSON object must have both a type and
// a coordinates array
if (!b_type_found || (!b_coordinates_found && !skip_coordinates)) {
throw new IllegalArgumentException("invalid argument");
}
@kjkrum The call looks correct. There are unit tests for geojson import export in the TestImportExport.java. Could you share a string that fails for you?
From #124
Problem
Google included their own slightly incompatible version of org.json:json in Android, and the Android Gradle plugin automatically excludes dependencies on any other version. Google's implementation of JSONObject is missing the static method getNames(JSONObject). ProGuard minimization detects the missing method and the build fails:
Warning: com.esri.core.geometry.JSONObjectEnumerator: can't find referenced method 'java.lang.String[] getNames(org.json.JSONObject)' in library class org.json.JSONObject
The text was updated successfully, but these errors were encountered: