Which exact version of the JDK are you using?
Please run "java -version" and copy the output here.
Thanks,
JBQ
On Tue, Jul 10, 2012 at 1:42 AM, kiran777 <
saikira...@gmail.com> wrote:
> Any help on the below error :
>
> external/guava/guava/src/com/google/common/collect/Maps.java:542:
> incompatible types; no instance(s) of type variable(s) K,V exist so that
> java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
> found : <K,V>java.util.TreeMap<K,V>
> required: java.util.SortedMap<K,V>
> SortedMap<K, V> onlyOnLeft = Maps.newTreeMap(comparator);
> ^
> external/guava/guava/src/com/google/common/collect/Maps.java:543:
> incompatible types; no instance(s) of type variable(s) K,V exist so that
> java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
> found : <K,V>java.util.TreeMap<K,V>
> required: java.util.SortedMap<K,V>
> SortedMap<K, V> onlyOnRight = Maps.newTreeMap(comparator);
> ^
> external/guava/guava/src/com/google/common/collect/Maps.java:545:
> incompatible types; no instance(s) of type variable(s) K,V exist so that
> java.util.TreeMap<K,V> conforms to java.util.SortedMap<K,V>
> found : <K,V>java.util.TreeMap<K,V>
> required: java.util.SortedMap<K,V>
> SortedMap<K, V> onBoth = Maps.newTreeMap(comparator);
> ^
> external/guava/guava/src/com/google/common/collect/Maps.java:547:
> incompatible types; no instance(s) of type variable(s) K,V exist so that
> java.util.TreeMap<K,V> conforms to
> java.util.SortedMap<K,com.google.common.collect.MapDifference.ValueDifference<V>>
> found : <K,V>java.util.TreeMap<K,V>
> required:
> java.util.SortedMap<K,com.google.common.collect.MapDifference.ValueDifference<V>>
> Maps.newTreeMap(comparator);
> ^
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> 4 errors
> make: ***
> [out/host/common/obj/JAVA_LIBRARIES/guavalib_intermediates/javalib.jar]
> Error 41
>
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to
android-...@googlegroups.com
> To unsubscribe from this group, send email to
>
android-buildi...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/android-building?hl=en
--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.