tabn3adit
tabn3adit

Reputation: 3

how to fix this error android: Could not find class 'com.owlike.genson.Genson'

final Collaborateur collaborateur =  new Genson().deserialize(scanner.nextLine(),Collaborateur.class);

05-17 12:00:20.058: E/dalvikvm(3150): Could not find class 'com.owlike.genson.Genson', referenced from method com.example.ayit.MainActivity$2.run

Upvotes: -6

Views: 229

Answers (2)

rosu alin
rosu alin

Reputation: 5830

You need to add your project either .jar or the dependencies:

<dependency>
  <groupId>com.owlike</groupId>
  <artifactId>genson</artifactId>
  <version>1.4</version>
</dependency>

Upvotes: 0

Anand Phadke
Anand Phadke

Reputation: 531

Please look into this to remove an error.

download jar file from here and add it into your project.

I hope this will resolve your error.

Upvotes: 0

Related Questions