Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

339
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda