Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

338
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda