|
发表于 2016-7-27 10:03:43
只看该作者
沙发
自问自答吧
编译SDK时,不要用. build/envsetup.sh
而是用编译image的方法,先运行 . build.sh, 这里面会设置JAVA的环境变量,然后再lunch sdk-eng, make sdk,就能编译了
然后编译SDK的过程中又遇到了另外一个问题,不知是否有人有遇到过:
Install: out/host/linux-x86/bin/atree
Install: out/host/linux-x86/bin/line_endings
Converting font: DroidSansMono.ttf
Converting font: Lohit-Odia.ttf
Lohit-Odia.ttf is not a valid font
Traceback (most recent call last):
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 208, in <module>
main(sys.argv[1:])
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 77, in main
convert_font(input_path, dest_path)
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 96, in convert_font
update_tag(name, get_font_info(name))
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 144, in get_font_info
font.version = get_version(namerecord.text)
File "frameworks/base/tools/layoutlib/rename_font/build_font_single.py", line 200, in get_version
raise InvalidFontException('mal-formed font version')
__main__.InvalidFontException: mal-formed font version
make: *** [out/host/common/obj/PACKAGING/sdk-fonts_intermediates/Lohit-Odia.ttf] 错误 1
另外插句题外话,验证码也太难识别了吧。。。。 |
|