swagger-api/swagger-codegen

Android Volley Generator

Open

#2.998 geöffnet am 30. Mai 2016

Auf GitHub ansehen
 (12 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (5.474 Forks)batch import
Client: AndroidIssue: Bughelp wanted

Repository-Metriken

Stars
 (12.701 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Description

HI, i've generated an Android client with volley library using the swagger generator (from windows). Everything went fine but when i try to call the API i get this error: "java.lang.NoClassDefFoundError: org.apache.http.Consts at io.swagger.client.ApiInvoker. .."

I've tried to use the PetStore Sample and i get the same error. I've tried to use okhttp-gson and i have the same problem. I've created a clean project to test the jar and i have the same error.

Am i doing something wrong?

My project use the androdi 23 sdk, i've added the jar generated in the libs folder of my project.

Swagger-codegen version

Lastest from master and 2.1.6

Swagger declaration file content or url

Use PetStore sample json

Command line used for generation

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i "json-path" -l android --library=volley -o "project-path"

Contributor Guide