android用build.xml打包時,公司給的keystore,alias竟然是中文。配置ant.properties時,機器死活識別不了。
用iconv將ant.properties文件轉換成gbk編碼
iconv -f utf-8 -t gbk ant.properties
failed。
原來ant的properties文件只能識別ascii編碼的文件,只能將utf-8轉換成ascii的方式,而android提供了這個工具native2ascii
native2ascii ant.properties
即可