编译android源码
源码都下载好了,好不容易!开始编译到一半又出错,他奶奶的
Gyp action: Generating resources from ui_strings.grd (out/target/product/generic/obj/GYP/shared_intermediates/ui/ui_strings/grit/ui_strings.h)
/media/办公/BaiduYunDownload/kitkat/mydroid/external/chromium_org/tools/grit/grit/node/misc.py:428: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if abs_filename[:len(src_root_dir)] != src_root_dir:
------------------------------------------------------------------------------
Resource id not set for ui_strings.grd (messages)!
Please update ../../../tools/gritsettings/resource_ids to include an entry for ui_strings.grd. See the comments in resource_ids for information on why you need to update that file.
------------------------------------------------------------------------------
Traceback (most recent call last):
File "../../../tools/grit/grit.py", line 15, in <module>
grit.grit_runner.Main(sys.argv[1:])
File "/media/办公/BaiduYunDownload/kitkat/mydroid/external/chromium_org/tools/grit/grit/grit_runner.py", line 268, in Main
toolobject.Run(options, args[1:])
File "/media/办公/BaiduYunDownload/kitkat/mydroid/external/chromium_org/tools/grit/grit/tool/build.py", line 143, in Run
target_platform=target_platform)
File "/media/办公/BaiduYunDownload/kitkat/mydroid/external/chromium_org/tools/grit/grit/grd_reader.py", line 210, in Parse
handler.root.AssignFirstIds(filename_or_stream, defines)
File "/media/办公/BaiduYunDownload/kitkat/mydroid/external/chromium_org/tools/grit/grit/node/misc.py", line 449, in AssignFirstIds
raise e
KeyError: 'ui_strings.grd'
make: *** [out/target/product/generic/obj/GYP/shared_intermediates/ui/ui_strings/grit/ui_strings.h] 错误 1
好像是python在执行转换的时候出错,那位大哥帮忙砍下是什么错误
------解决方案--------------------怎么还有中文路径的。。
------解决方案--------------------帮顶来了。这个是你下载的话怎么有错误呢。
------解决方案--------------------UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode
这应该是你这里的中文引起的。你换成英文的再试试看。