Skip to content Skip to sidebar Skip to footer

How To Import External Json Jar File Into Android Project

i want to convert some data into JSON to transmit. but since the android methods about JSON are quite tedious. i create a user library and import some JSON jar files i always use i

Solution 1:

i import the JSON jar by adding new library in the Java Build Path

Do not do that.

Instead, create a libs/ directory in your project and put the JAR there. If you are on the latest version of the ADT plugin for Eclipse, having your JAR be in libs/ will automatically add it to your build path and will automatically include the JAR's contents in your APK.

Solution 2:

select project

  1. right click go to properties and select java build path.

2.select libraries tag

3.click add external jar. select the jar file . CLICK OK. That's all you need to do.

Post a Comment for "How To Import External Json Jar File Into Android Project"