android - 构建 android 4.3 master 时出错

标签 android javac ubuntu-10.04 android-build

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

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]

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

最佳答案

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

$java -version

我的是1.6.0_26

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

关于android - 构建 android 4.3 master 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18714349/

相关文章:

ruby - 使用 ruby​​ 应用程序时出现 remove_entry_secure 错误

ubuntu - 跟踪 aws 中的带宽使用情况

python - 使用 Cron 运行 Python 脚本?

android - 使用 phonegap 时是否需要在我的应用程序中显示 apache 许可证?

java - 无法加载主类 list Lucene Spellchecker

javac命令行编译错误: package javax. servlet不存在

java - 尝试使用 javac : package R does not exist 编译 java 源

android - 如何处理谷歌地图(MapFragment)上的触摸事件?

android - 致命异常 : android. view.InflateException:二进制 XML 文件行 #20

java - 我想在媒体播放器中自动播放下一首歌曲