Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

336
Views
Error importing json simple library to Android Studio

I am getting this error when using an import method I found to Android Studio.

https://github.com/MagicMicky/FreemiumLibrary/wiki/Import-the-library-in-Android-Studio

The import method I am using is in the above link.

This is the error message (Click Here)

This is how it is in the settings.gradle

include ':app',':lib:json-simple-master'

and this is how I edited the build.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        compile project(':lib:json-simple-master')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

This is how I am trying to import the file

import org.json.simple.*;
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You shouldn't need to follow those instructions

But you edited the wrong build.gradle file.

Update the one like this

android {
   ... 
} 

dependencies {
    ... 
    compile group: 'com.magicmicky.freemiumlibrary', name: 'library', version: '1.1'
} 

If you want a JSON library, android already has org.json... If you want Java object deserialization, use Jackson or Gson.

json-simple doesn't seem necessary in an app

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!