JSONObject ClassNotFoundException

后端 未结 3 937
没有蜡笔的小新
没有蜡笔的小新 2020-12-31 11:21

I am working in IntelliJ and using Maven. I have a class that uses JSONObject:

import org.json.JSONObject;

try {
  JSONObject documentObj = new          


        
3条回答
  •  攒了一身酷
    2020-12-31 12:06

    As of today (15th July 2020), you need to use latest maven repository as per below:

    
        org.json
        json
        20200518
    
    

    For any new version in the future, you can check it here:

    • https://mvnrepository.com/artifact/org.json/json

    Then simply replace 20200518 with latest new version value.

提交回复
热议问题