Android source code compilation: A zip error:invalid command arguments solution appears

Source: Internet
Author: User

The problem was discovered by chance when this compilation was published in the previous period:

Zip error:invalid Command Arguments (cannot repeat names in zip file) Make: * * * [out/target/product/k200_hdmiin/system/etc /recovery-resource.dat] Error 16make: * * * waiting for unfinished jobs ....


Background Introduction

Bo Master is currently engaged in Androidtvbox development, based on Android source code. So often need all-in-one Android source code, the above mentioned is the full compilation of the source process encountered a problem because there is no solution on the Internet, so share out.


answers on the web The k200_hdmiin above is the name that is determined by your board. There is no suitable solution on the internet, it is said that: when compiling recovery, the. SVN directory is copied to the Out directory
./recovery/root/res/images/.svn
./recovery/root/res/.svn
Workaround:
1, installation subversion1.7;
PS: Server is VISUALSVN, a colleague installed subversion1.7 found a problem, so did not try.
2. Remove the. svn file from all directories.
PS: This has been removed, how to update the code.
Here's a simple solution:
Modify Build/core/main.mk
(Shell build/tools/findleaves.py--prune=$ (out_dir)--prune=.repo--prune=.git--prune=.svn $ (subdirs) Android.mk)

add--PRUNE=.SVN.

Note: To delete the. svn folder from the Out directory.


my way. It turns out that I don't have a. SVN directory with a hint:
Make: * * * [Out/target/product/k200_hdmiin/system/etc/recovery-resource.dat] Error 16
so it is recovery out a problem, because a colleague accidentally changed the recovery, so found an old version of the bootable/recovery/replaced the existing bootable/recovery/, the whole series through, I hope to help you!
Reprint Please indicate the source link: http://blog.csdn.net/xiong_it/article/details/45060167, thank you!

Android source code compilation: A zip error:invalid command arguments solution appears

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.