【问题标题】:Building a specific piece of Android platform?构建一个特定的 Android 平台?
【发布时间】:2010-06-17 21:57:51
【问题描述】:

我一直在尝试仅构建 Android 平台的“/libcore”目录。当我尝试mmm libcore 时,我最终得到以下输出:

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.1-update1
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
make: Entering directory `/home/chris/android/platform'
target Prebuilt:  (out/target/product/generic/system/etc/security/cacerts.bks)
host Prebuilt: run-core-tests-on-ri (out/host/linux-x86/obj/EXECUTABLES/run-core-tests-on-ri_intermediates/run-core-tests-on-ri)
target Prebuilt: run-core-tests (out/target/product/generic/obj/EXECUTABLES/run-core-tests_intermediates/run-core-tests)
Copy: out/target/product/generic/system/etc/apns-conf.xml
Copying: out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/classes-full-debug.jar
/bin/bash: jar: command not found
make: *** [out/host/common/core-tests.jar] Error 127
make: *** Deleting file `out/host/common/core-tests.jar'
make: Leaving directory `/home/chris/android/platform'

有没有人对错误 127 有什么建议,或者我可以用另一种方法来构建“libcore”而无需再次构建整个平台?

谢谢, 克里斯

【问题讨论】:

    标签: android build makefile compilation


    【解决方案1】:

    它说“jar:找不到命令”

    您确定安装了 Java SDK 吗?

    【讨论】:

    • 谢谢,原来jar可执行文件的系统链接没有设置。
    • @Chrisc 你是怎么设置的?
    猜你喜欢
    • 2023-03-06
    • 1970-01-01
    • 2014-04-28
    • 1970-01-01
    • 2020-08-08
    • 2015-05-29
    • 1970-01-01
    • 2012-01-12
    • 1970-01-01
    相关资源
    最近更新 更多