构建特定的 Android 平台?

发布于 2024-09-05 23:17:25 字数 1340 浏览 2 评论 0原文

我一直尝试只构建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”而无需再次构建整个平台的另一种方法?

谢谢, 克里斯

I have been trying to build only the "/libcore" directory of the Android platform. When I try mmm libcore I end up with the following output:

============================================
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'

Does anyone have any suggestions on what Error 127 is, or another method I can go about building "libcore" without having to build the entire platform again?

Thanks,
Chris

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光是把杀猪刀 2024-09-12 23:17:25

它显示“jar:未找到命令”

您确定安装了 Java SDK 吗?

It says "jar: command not found"

Are you sure you have a Java SDK installed?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文