Firefly开源社区

打印 上一主题 下一主题

[Android] 求助!! 编译Android报错

73

积分

0

威望

0

贡献

技术小白

积分
73

求助!! 编译Android报错

发表于 2019-9-26 18:20:08      浏览:8440 | 回复:4        打印      只看该作者   [复制链接] 楼主
Ubuntu18.04
Android7.1.2

编译报如下错误:
FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp
2 errors during configuration. Try --help-properties for help.
  Property 'jack.dex.output.dir' (in Options): directory 'out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/jack-rsc' is not writable (required because 'jack.dex.output.container' (defined in Options) is set to 'dir')
  Property 'jack.library.output.zip' (in Options): file 'out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/classes.jack' can not be created (required because 'jack.library' (defined in Options) is set to true and 'jack.library.output.container' (defined in Options) is set to 'zip')
[ 31% 15188/48841] build out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack
FAILED: /bin/bash -c "(mkdir -p out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res ) && (unzip -qo prebuilts/sdk/8/android.jar -d out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res ) && (find out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res -iname \"*.class\" -delete ) && (JACK_VERSION=3.36.CANDIDATE out/host/linux-x86/bin/jack @build/core/jack-default.args --verbose error  -D jack.import.resource.policy=keep-first -D jack.import.type.policy=keep-first -D jack.android.min-api-level=1 --import prebuilts/sdk/8/android.jar --import-resource out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res --output-jack out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack ) && (rm -rf out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack.tmpjill.res )"
1 error during configuration. Try --help-properties for help.
  Property 'jack.library.output.zip' (in Options): file 'out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jack' can not be created (required because 'jack.library' (defined in Options) is set to true and 'jack.library.output.container' (defined in Options) is set to 'zip')
[ 31% 15188/48841] Docs droiddoc: out/target/common/docs/api-stubs
DroidDoc took 8278 sec. to write docs to out/target/common/docs/api-stubs
[ 31% 15188/48841] Docs droiddoc: out/target/common/docs/test-api-stubs
DroidDoc took 8695 sec. to write docs to out/target/common/docs/test-api-stubs
[ 31% 15188/48841] Docs droiddoc: out/target/common/docs/system-api-stubs
DroidDoc took 9399 sec. to write docs to out/target/common/docs/system-api-stubs
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

还请大佬解答!谢谢了
回复

使用道具 举报

73

积分

0

威望

0

贡献

技术小白

积分
73
发表于 2019-9-26 18:22:18        只看该作者  沙发
网上的解决办法都尝试过了 无果
回复

使用道具 举报

73

积分

0

威望

0

贡献

技术小白

积分
73
发表于 2019-9-26 18:28:07        只看该作者  板凳
还请大佬指教
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2019-9-27 10:47:44        只看该作者  地板

请在ubuntu16.04或14.04上编译吧,看wiki流程编译
回复

使用道具 举报

73

积分

0

威望

0

贡献

技术小白

积分
73
发表于 2019-9-29 16:25:08        只看该作者  5#
jpchen 发表于 2019-9-27 10:47
请在ubuntu16.04或14.04上编译吧,看wiki流程编译

好的 谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表