当使用this guide在Arch Linux上编译Android Automotive OS时,你可能会在编译的最后阶段得到如下错误:
FAILED: out/target/product/generic_x86_64/system-qemu.img
/bin/bash -c "(export SGDISK=out/host/linux-x86/bin/sgdisk SIMG2IMG=out/host/linux-x86/bin/simg2img; device/generic/goldfish/tools/mk_combined_img.py -i out/target/product/generic_x86_64/system-qemu-config.txt -o out/target/product/generic_x86_64/system-qemu.img)"
File "device/generic/goldfish/tools/mk_combined_img.py", line 48
print "'%s' cannot be converted to int" % (line[2])
^
SyntaxError: invalid syntax
发布于 2020-10-07 01:05:10
如果在Arch linux上编译AOSP时出现此错误,则需要转到文件/android/device/generic/goldfish/tools/mk_combined_img.py
并将第一行:#!/usr/bin/python
更改为#!/usr/bin/python2
它现在应该可以正常编译了.
https://stackoverflow.com/questions/64230597
复制相似问题