在我的旧笔记本电脑DELL Latitude D620(带有Ubuntu 11.10的Intel T5500)上编译android源代码时遇到一些问题
以下是错误代码:
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=4.0.9.99.999.9999.99999
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.0.0-23-generic-x86_64-with-Ubuntu-11.10-oneiric
HOST_BUILD_TYPE=release
BUILD_ID=OPENMASTER
OUT_DIR=out
============================================
...
compile progress..
...
host Java: draw9patch (out/host/common/obj/JAVA_LIBRARIES/draw9patch_intermediates/classes)
host Java: hierarchyviewer (out/host/common/obj/JAVA_LIBRARIES/hierarchyviewer_intermediates/classes)
Note: sdk/draw9patch/src/com/android/draw9patch/ui/ImageTransferHandler.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Install: out/host/linux-x86/framework/layoutlib_api.jar
Install: out/host/linux-x86/framework/layoutlib_create.jar
host Java: lint_api (out/host/common/obj/JAVA_LIBRARIES/lint_api_intermediates/classes)
host Java: signature-tools (out/host/common/obj/JAVA_LIBRARIES/signature-tools_intermediates/classes)
host Java: traceview (out/host/common/obj/JAVA_LIBRARIES/traceview_intermediates/classes)
target R.java/Manifest.java: ApplicationsProvider (out/target/common/obj/APPS/ApplicationsProvider_intermediates/src/R.stamp)
make: *** [out/target/common/obj/APPS/ApplicationsProvider_intermediates/src/R.stamp] Segmentation fault
make: *** Waiting for unfinished jobs....
如果我'干净'并再次编译代码,它可能会在其他模块中出错,例如'CalendarProvider_intermediates'等等。
我在互联网上没有发现类似的问题,这是硬件问题吗?
答案 0 :(得分:0)
我有同样的问题,最后我解决了。
我的经验是查看网站http://source.android.com/source/initializing.html
我的机器是Ubuntu 14.04,在安装了lib之后我按照建议。希望它可以帮到你。
sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 \ lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache \ libgl1-mesa-dev libxml2-utils xsltproc unzip