简体   繁体   中英

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM