1

I am new android. How add the JAR file in the android sdk and where to add. Can you anyone please help me.

Thanks Thilak.

Abdul Rahman
  • 2,097
  • 4
  • 28
  • 36
sanraj
  • 47
  • 3
  • 9
  • which ide are you use? Eclips? then it going to comfortable.show my answer – Nikunj Patel Jul 13 '11 at 12:21
  • possible duplicate of [how to add JAR and .SO file in the Android Sdk](http://stackoverflow.com/questions/6676293/how-to-add-jar-and-so-file-in-the-android-sdk) – Paresh Mayani Jul 13 '11 at 12:39
  • What do you mean with ADD JAR FILE in android sdk??? You mean..how to add JAR file in android project (eclipse)? if so check this: http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project – Plamen Nikolov Jul 13 '11 at 12:15

2 Answers2

4

For a JAR ::

right click on project >> Build path >> Configure Build path >> got to library tab >> add external JAR >> chose from particular location and >>> ok

Nikunj Patel
  • 21,853
  • 23
  • 89
  • 133
1

This means not in eclipse but we want inside android sdk without using eclipse

You cannot put JARs "inside android sdk", other than in the form of building your own device firmware.

To add JARs to an Android project, put them in the libs/ directory, and add them to the build path of your IDE if needed (e.g., Eclipse). For command-line builds with Ant, simply having the JARs in libs/ will suffice.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491