Re: [android-building] compiling the latest code given this error..

3,347 views
Skip to first unread message

Jean-Baptiste Queru

unread,
Jul 10, 2012, 8:28:47 PM7/10/12
to android-...@googlegroups.com
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.

Jean-Baptiste Queru

unread,
Jul 11, 2012, 11:46:59 AM7/11/12
to android-...@googlegroups.com
That makes little sense. The CyanogenMod patch mentions OpenJDK, but
you're using a Sun JDK on which this issue isn't expected to exist.

JBQ

On Tue, Jul 10, 2012 at 9:54 PM, kiran777 <saikira...@gmail.com> wrote:
> Hi JBQ,
>
> java version is..
>
> java version "1.6.0_31"
> Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)

maruti prasad

unread,
Oct 9, 2013, 1:08:41 AM10/9/13
to android-...@googlegroups.com, j...@android.com
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
OpenJDK Server VM (build 23.7-b01, mixed mode)

Daniel Grießhaber

unread,
Oct 9, 2013, 1:00:02 PM10/9/13
to android-...@googlegroups.com

You cannot build Android with OpenJDK. Use Oracle JDK instead

Reply all
Reply to author
Forward
0 new messages