ubuntu中编译SDK时报错

lancy_android 发布于 2012/08/18 09:44
阅读 1K+
收藏 0

我最近一次在编译android Sdk时经常报这个错误:

备注:sdk没问题,我怀疑是环境的问题,但是我重新装了JDK还是一样报错。

ld/tools/merge-event-log-tags.py:29: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
host Java: javassist (out/host/common/obj/JAVA_LIBRARIES/javassist_intermediates/classes)
host Java: mockwebserver-hostdex (out/host/common/obj/JAVA_LIBRARIES/mockwebserver-hostdex_intermediates/classes)
host Java: cts-api-coverage (out/host/common/obj/JAVA_LIBRARIES/cts-api-coverage_intermediates/classes)
Note: external/eyes-free/AccessCheck/src/com/android/accessibility/AccessibilityValidationContentHandler.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
host Java: cts-native-xml-generator (out/host/common/obj/JAVA_LIBRARIES/cts-native-xml-generator_intermediates/classes)
host Java: host-libprotobuf-java-2.3.0-lite (out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-lite_intermediates/classes)
host Java: host-libprotobuf-java-2.3.0-micro (out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-micro_intermediates/classes)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00002b5f661ab32f, pid=14066, tid=47688818235136
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x6d332f]
#
# An error report file with more information is saved as:
# /home/mercedes/Workspace/tvd/android4.0/hs_err_pid14066.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/bin/bash: line 1: 14066 Aborted                 javac -J-Xmx512M -target 1.5 -Xmaxerrs 9999999 -encoding UTF-8 -extdirs "" -d out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-micro_intermediates/classes \@out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-micro_intermediates/classes/java-source-list-uniq
make: *** [out/host/common/obj/JAVA_LIBRARIES/host-libprotobuf-java-2.3.0-micro_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: external/protobuf/java/src/main/java/com/google/protobuf/GeneratedMessageLite.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
mercedes@mercedes-pc:~/Workspace/tvd/android4.0$

 

请高人指点?

加载中
0
无心睡眠
无心睡眠
看上去象是oracle的java虚拟机的错误,建议升级最新的jdk
0
lancy_android
lancy_android
这个问题基本上确定了,和jdk没关系(我试了几个jDK)结果都一样,后面确定时我给虚拟机分配的内存小了(分了1G),现在换成1.5G,编译通过了。
0
lancy_android
lancy_android
纠正一下,还真是jdk装的有问题,在Linux上安装jdk的时候,还是仔细一点。
返回顶部
顶部