I wrote an Android app that use the Guava library.
The app works perfectly fine on Android 4 (virtual machine and real device).
However, when I try to launch the app on a virtual machine running Android 2.1, I get the following error:
java.lang.NoClassDefFoundError: com.google.common.collect.ImmutableSortedMap
I have played with the libraries imports. The idea behind: older version of Android might handle jars in a different way. No success here.
It is worth mentioning, that the app is an update of a previous version already using Guava. The previous version worked fine on all devices, but wasn't using the ImmutableSortedMap object rather just an ImmutableList. Would it be possible that the phone is loading his own version of the Guava library (that might not contains ImmutableSortedMap)?
I am using Eclipse with ADT 20. Here is how my libraries looks like in Eclipse package explorer:
Thank you in advance!