Kumar Shorav
Kumar Shorav

Reputation: 531

Integration of external jar file in android application using adt 20

I am trying to use external jar file in android application. The jar file is running well in another java application but when I am trying to use the Jar file with Android Application by BuildPath-> Add External Jars; it is showing following errors

"could not find class referenced from method ".

Please help me out from this.

Thanks

Shorav

Upvotes: 0

Views: 882

Answers (2)

Pierre Teumah
Pierre Teumah

Reputation: 1

If you want to use a Jar in android application you may create it like this:

  1. Open your IDE
  2. Click on new
  3. Choose new Android project
  4. Give the name of your project
  5. Check option make this project as library

Upvotes: 0

RajaReddy PolamReddy
RajaReddy PolamReddy

Reputation: 22493

Maybe the ADK update has messed-up with your project's build-path. Try removing the JAR and add it again to your libs folder, and do a Clean Project.

following poster's comment about not having a libs folder:

You should try this:

Remove all references to the JAR in your project -> your code should not build without error anymore

Create à libs folder at the root of your project

Copy the JAR into the libs folder

(If still not running OK) Right click your project > Android Tools > Fix Project Propertie

Upvotes: 2

Related Questions