构建 android 4.3 master 时出错 [英] error while building android 4.3 master

查看:31
本文介绍了构建 android 4.3 master 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要构建 android 4.3 master.按照这里的说明http://source.android.com/source/building.html.从 repo 同步源代码进展顺利.当我们尝试使用make -j4"进行构建时,就会发生这种情况.

i need to build android 4.3 master. following instruction from here http://source.android.com/source/building.html . It's going well up to sync-ing source code from repo. When we are trying to build using "make -j4", this is occurring.

1 error
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....

这是完整的日志 -

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3.2.1.000.000
TARGET_PRODUCT=aosp_panda
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-2.6.32-38-generic-x86_64-with-Ubuntu-10.04-lucid
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
No private recovery resources for TARGET_DEVICE panda
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
host Executable: aidl (out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl)
host C++: aapt <= frameworks/base/tools/aapt/AaptAssets.cpp
host C++: aapt <= frameworks/base/tools/aapt/Command.cpp
host C++: aapt <= frameworks/base/tools/aapt/CrunchCache.cpp
host C++: aapt <= frameworks/base/tools/aapt/FileFinder.cpp
host C++: aapt <= frameworks/base/tools/aapt/Main.cpp
host C++: aapt <= frameworks/base/tools/aapt/Package.cpp
host C++: aapt <= frameworks/base/tools/aapt/StringPool.cpp
host C++: aapt <= frameworks/base/tools/aapt/XMLNode.cpp
host C++: aapt <= frameworks/base/tools/aapt/ResourceFilter.cpp
host C++: aapt <= frameworks/base/tools/aapt/ResourceIdCache.cpp
In file included from frameworks/base/tools/aapt/ResourceIdCache.cpp:10:0:
frameworks/base/tools/aapt/ResourceIdCache.h:10:16: warning: declaration 'class     android::String16' does not declare anything [enabled by default]
frameworks/base/tools/aapt/ResourceIdCache.cpp: In static member function 'static void     android::ResourceIdCache::dump()':
frameworks/base/tools/aapt/ResourceIdCache.cpp:101:40: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'std::map<unsigned int, CacheEntry>::size_type {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:102:34: warning: format '%ld' expects     argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:103:36: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
frameworks/base/tools/aapt/ResourceIdCache.cpp:104:46: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'size_t {aka unsigned int}' [-Wformat]
host C++: aapt <= frameworks/base/tools/aapt/ResourceTable.cpp
host C++: aapt <= frameworks/base/tools/aapt/Images.cpp
host C++: aapt <= frameworks/base/tools/aapt/Resource.cpp
host C++: aapt <= frameworks/base/tools/aapt/SourcePos.cpp
host C++: aapt <= frameworks/base/tools/aapt/ZipEntry.cpp
host C++: aapt <= frameworks/base/tools/aapt/ZipFile.cpp
host StaticLib: libandroidfw (out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/libandroidfw.a)
host C++: libutils <= frameworks/native/libs/utils/BasicHashtable.cpp
host C++: libutils <= frameworks/native/libs/utils/BlobCache.cpp
host C++: libutils <= frameworks/native/libs/utils/BufferedTextOutput.cpp
host C++: libutils <= frameworks/native/libs/utils/CallStack.cpp
libcore/luni/src/main/java/libcore/reflect/AnnotationAccess.java:743: type parameters of <A>A cannot be determined; no unique maximal instance exists for type variable A with upper bounds A,java.lang.annotation.Annotation
    return AnnotationFactory.createAnnotation(annotationClass, members);
                                             ^
host C++: libutils <= frameworks/native/libs/utils/Debug.cpp
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
In file included from frameworks/base/tools/aapt/ResourceTable.cpp:11:0:
frameworks/base/tools/aapt/ResourceIdCache.h:10:16: warning: declaration 'class android::String16' does not declare anything [enabled by default]

任何见解或帮助将不胜感激.提前致谢.

Any insight or help will be appreciated.Thanks in advance.

推荐答案

你的 jdk 版本是多少?可以检查

what is your jdk version? can check with

$java -version

我的是1.6.0_26

当我从 oracle 安装 jdk-6u24-linux-x64.bin 时,我遇到了和你一样的错误.我切换到jdk-6u26-linux-x64.bin后,错误消失了,不知道是不是和你一样的情况.

I had the same error as you when I install jdk-6u24-linux-x64.bin from oracle. After I switch to jdk-6u26-linux-x64.bin, the error is gone, not sure if it is the same case as you.

这篇关于构建 android 4.3 master 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆