No virtual method toMap()Ljava/util/Map; in class Lorg/json/JSONObject;
See original GitHub issueI am getting this exception when I am using this library in Android. I am using the following dependency
“com.github.everit-org.json-schema:org.everit.json.schema:1.8.0”
java.lang.NoSuchMethodError: No virtual method toMap()Ljava/util/Map; in class Lorg/json/JSONObject; or its super classes (declaration of 'org.json.JSONObject' appears in /system/framework/core-libart.jar)
at org.everit.json.schema.loader.SchemaLoader$SchemaLoaderBuilder.schemaJson(SchemaLoader.java:175)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:250)
at org.everit.json.schema.loader.SchemaLoader.load(SchemaLoader.java:236)
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Android: Issue using JSON library in pure java package
I've tried importing a very old version of the JSON library incase it is due to some kind of conflict where I am...
Read more >How to add _geoloc data from Android? - Algolia Community
java.lang.NoSuchMethodError : No virtual method put(Ljava/lang/String;Ljava/util/Map;)Lorg/json/JSONObject; in class. Lorg/json/JSONObject ...
Read more >Analysis Report - Joe Sandbox
General Information ; Overall analysis duration: 0h 6m 13s ; Hypervisor based Inspection enabled: false ; Report type: full ; Sample file name:...
Read more >Android Analysis Report re4PfGl5Lc.zip - Joe Sandbox
Source: Lcom/huawei/hms/common/Feature;->toString()Ljava/lang/String;, Method string: "version". Source: Lanet/channel/strategy/a/g;->a(Ljava/util/Map ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m using
Spring-boot-starter-test
and ran into this issue. By adding the JSON exclusion, it replaces that implementation with a json module that works.In the latest release (version
1.10.0
) the compatibility with thecom.vaadin.external.google:android-json
library version has been fixed.