【问题标题】:Android ICS build fails with error 41Android ICS 构建失败并出现错误 41
【发布时间】:2011-12-23 16:35:21
【问题描述】:

我尝试在 Ubuntu 10.04 LTS 上构建 Android ICS。一切都很好,直到 ubuntu 安装了 Java 的下一个更新。

在此之后,构建失败并出现错误 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 和邮件列表中的一些问题(未回答)。

不幸的是,这对我没有帮助。 我的JAVA_HOME 指向/usr/lib/jvm/java-6-sun,它是jdk1.6.0_30 的符号链接。 所以看起来我现在使用的是最新版本的 Java。

【问题讨论】:

标签: java android build compiler-errors


【解决方案1】:

好的,解决方案是使用 open-jdk 而不是 jdk。它对我有帮助。

【讨论】:

  • 你能告诉你机器的设备配置吗.ubuntu(10.04 , 64 bit??)
  • ok 已解决,我发现/实验对于 Nexus S,我必须选择午餐 full_crespo-user_debug 选项,我正在执行 full_eng(engineering) build.Also 为了找到我遇到的错误的正确日志使用make而不是make -j4。在后面的日志中,日志不是串行编译的日志,而是四个CPU线程的并行编译。我认为它必须是Android开发者网站推荐的sun6-jdk和不是 open-jdk。在重新编译 evrything 之前,我必须删除所有 open-jdk 组件并重新安装 sun6-jdk。
猜你喜欢
  • 2018-05-26
  • 1970-01-01
  • 2017-06-10
  • 1970-01-01
  • 1970-01-01
  • 2021-11-27
  • 2022-11-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多