Android not finding class inside a Jar. What to do?

Asked

Viewed 65 times

0

This is the mistake:java.lang.ClassNotFoundException: br.org.projeto.precos.bean.Lista

where the "br.org.projeto.precos.bean.Lista" is the Jar from which I am trying to use a class. I imported everything right, put in libs folder, in Java Build Paths I added Jar in all possible places but I’m with this error, which can be?

1 answer

2

Check if, in Java Build Path, you scored "Include" in this jar. It may not be included when compiling and generating your app’s APK.

Something like in the image below:

Tela Java Build Path - guia Order and Export

  • I’ve already marked all the options there.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.