Android的ICS构建失败,错误41 [英] Android ICS build fails with error 41
问题描述
我试图在Ubuntu 10.04 LTS构建Android ICS。一切都很正常,直至安装Ubuntu的下一个更新的Java。
I tried to build Android ICS on Ubuntu 10.04 LTS. All was fine, until ubuntu installed next update for Java.
在此之后,构建失败,错误41:
After this, build fails with error 41:
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/PropertyPermission.java:2: java.util.PropertyPermission is not abstract and does not override abstract method hashCode() in java.security.Permission
public final class PropertyPermission
^
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/logging/LoggingPermission.java:2: java.util.logging.LoggingPermission is not abstract and does not override abstract method hashCode() in java.security.Permission
public final class LoggingPermission
^
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/javax/net/ssl/SSLPermission.java:2: javax.net.ssl.SSLPermission is not abstract and does not override abstract method hashCode() in java.security.Permission
public final class SSLPermission
^
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/javax/security/auth/AuthPermission.java:2: javax.security.auth.AuthPermission is not abstract and does not override abstract method hashCode() in java.security.Permission
public final class AuthPermission
^
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/javax/security/auth/PrivateCredentialPermission.java:2: javax.security.auth.PrivateCredentialPermission is not abstract and does not override abstract method hashCode() in java.security.Permission
public final class PrivateCredentialPermission
^
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/org/apache/http/impl/conn/tsccm/BasicPoolEntryRef.java:5: warning: [unchecked] unchecked conversion
found : java.lang.ref.ReferenceQueue
required: java.lang.ref.ReferenceQueue<? super org.apache.http.impl.conn.tsccm.BasicPoolEntry>
public BasicPoolEntryRef(org.apache.http.impl.conn.tsccm.BasicPoolEntry entry, java.lang.ref.ReferenceQueue<java.lang.Object> queue) { super(null,(java.lang.ref.ReferenceQueue)null); throw new RuntimeException("Stub!"); }
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
111 errors
6 warnings
make: *** [out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar] Error 41
我通过网络搜索,却发现只有这个提示: http://kimoto.tistory.com/26一>,并在邮件列表中的一些问题(解答)。
I searched through net, but found only this tip: http://kimoto.tistory.com/26 and some questions (unanswered) in mailing lists.
不幸的是,它并没有帮助我。
我的 JAVA_HOME
点 / usr / lib目录/ JVM / JAVA-6-太阳
这是符号链接 jdk1.6.0_30
。
所以看起来像我现在用最新版本的Java。
Unfortunately, it didn't help for me.
My JAVA_HOME
points to /usr/lib/jvm/java-6-sun
which is symlink to jdk1.6.0_30
.
So looks like I now used latest version of Java.
推荐答案
好吧,分辨率是使用开放式的JDK,而不是JDK的。它帮助我。
Ok, resolution was to use open-jdk instead of jdk. It helped to me.
这篇关于Android的ICS构建失败,错误41的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!