1
votes

I want to use Jackson JSON 2.1.1 parser in my Android project in Eclipse ADT. I've downloaded Jackson jar files (annotations, databind,core). And added them as external jars to the project and even include them in order and export:

enter image description here

enter image description here

I see these jars in referenced libraries, but I can't import and use them: import org.codehaus.jackson is't seen.

2

2 Answers

5
votes

Try creating a "libs" folder in your project root and dropping the jars in there. Android handles this by convention. You won't need to explicitly add them to your build path.

If that doesn't work, make sure you've downloaded the correct jars.

And when all else fails: Refresh and/or Project -> Clean and/or quit and restart Eclipse

:)

0
votes

use:
import com.fasterxml.jackson.databind.ObjectMapper