I want to use Json simple in my project, however I can't get it to work. I tried versions 1.1.0, 3.1.0, 3.1.3, 4.0.0 and every time I do import com.github.cliftonlabs.json_simple.JsonException; I have error Cannot resolve symbol 'JsonException' I use InteliJ, every time I tried a version I went to File> Project Structure and added .jar file. Then I add dependecy compile group: 'com.github.cliftonlabs', name: 'json-simple', version: '3.1.0' into my build.gradle. The error repeats every time. How do I fix this?
CodePudding user response:
I managed to fix the issue, I used
implementation 'com.github.cliftonlabs:json-simple:4.0.0' in build.gradle
and refreshed the gradle build
CodePudding user response:
Your issue might not be importing, but the fact that you haven't added JSON to your computers list of readable languages, by adding it to the Classpath?
Maybe this could be helpful: Setting JSON.Simple Classpath
