zip error: Invalid command arguments
来源:互联网 发布:时时彩毒胆计划软件 编辑:程序博客网 时间:2024/06/05 13:28
http://blog.csdn.net/cww0403/article/details/19108537
在编译使用svn管理的android代码时,会出现如下错误:
zip error: Invalid command arguments (cannot repeat names in zip file)
make: *** [out/target/product/xxxxx/system/etc/recovery-resource.dat] Error 16
make: *** Waiting for unfinished jobs....
原因是因为编译recovery的时候把.svn目录拷贝到了out目录下
./recovery/root/res/images/.svn
./recovery/root/res/.svn
网上提供的解决方法没有去试:
1、安装subversion1.7;
PS:服务器用的是visualSVN,有同事装了subversion1.7发现有问题,于是就没试。
2、删除所有目录下的.svn文件。
PS:这个都删除了,更新代码怎么办。
这里提供一个最简单的解决方案:
修改build/core/main.mk
$(shell build/tools/findleaves.py --prune=$(OUT_DIR) --prune=.repo --prune=.git --prune=.svn $(subdirs) Android.mk)
添加 --prune=.svn即可。
修改buid/core/Makefile
$(hide) cp -rf $(recovery_resources_common) $(TARGET_RECOVERY_ROOT_OUT)/
$(hide) rm -rf $(TARGET_RECOVERY_ROOT_OUT)/res/.svn $(TARGET_RECOVERY_ROOT_OUT)/res/images/.svn //添加这一行
$(hide) cp -f $(recovery_font) $(TARGET_RECOVERY_ROOT_OUT)/res/images/font.png
- zip error: Invalid command arguments
- zip error: Invalid command arguments
- zip error: Invalid command arguments
- zip error: Invalid command arguments
- Android源码编译:出现zip error: Invalid command arguments解决办法
- Error:Invalid command android
- expect error invalid command name
- eclipse Error处理:Invalid arguments ' Candidates are: void luaL_openlibs(*)'
- Error处理:Invalid arguments ' Candidates are: void * memcpy(void *, const void *, ?) Error处理:Invalid
- 模拟器无法启动,提示Connection failed because of invalid command-line arguments
- zip error: Invalid&nbs…
- zip error: Invalid&nbs…
- Command line error D8021: invalid numeric argument '/Wno-deprecated
- VS2003 Command line error D2021 : invalid numeric argument '/Wp64'
- 关于pip3 install error(invalid command 'egg_info')
- error in cryptography setup command: Invalid environment marker: python_version < '3'
- Invalid arguments问题
- GDB Command Line Arguments
- spring用jdbc访问oracle数据库方法
- Mac下firfox访问https限制问题
- Java大数类介绍
- Office文档转换成PDF文档
- Oracle listagg函数、lag函数、lead函数
- zip error: Invalid command arguments
- GCD 深入理解(一)
- cocos2dx各类继承结构
- ORACLE 11G的BIEE 部署与运用(一)——RCU创建资料档案库(图示)
- 解决Android应用安装快完毕时提示签名冲突
- Flex 学习笔记之三:IDEA 搭建Flex 项目(Hello World)
- eclipse中hadoop2.3.0环境部署及在eclipse中直接提交mapreduce任务
- php开发APP接口 接收客户端的图片
- MS一面