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

即可

更多相关文章

  1. 【android studio】超实用技巧
  2. 基于ubuntu16.04多用户编译android N(android 7.1)系统提示ninja
  3. Android问题之res/raw和assets文件大小限制
  4. Android的init过程:初始化语言(init.rc)解析
  5. Android(安卓)Studio打包签名全过程
  6. UBI文件系统
  7. Android(安卓)NFS 文件系统
  8. 使用drawable资源
  9. android读取原始的xml文件

随机推荐

  1. Android善用预定义样式
  2. 使用反射调用android API中的hide方法
  3. 通过WifiManager,DhcpInfo获取android IP
  4. Android(安卓)App整体架构设计的思考
  5. File 存储(android)
  6. Android摄像头开发完美demo---(循环聚焦,
  7. android 网络之 httppost
  8. 在eclipse中查看Android SDK源代码
  9. android API8以上版本使用GridLayout
  10. Js中JSON.parse函数解析导致的数据异常