无法读取所需库的归档文件或不是有效的ZIP文件 [英] archive for required library could not be read or is not a valid ZIP file

查看:2555
本文介绍了无法读取所需库的归档文件或不是有效的ZIP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 我在

Before coming to the problem let me explain what I did that has landed me in the problem.

但是我的项目突然出现了一个红色的'!'标志错误。

  1. I created an account on github and made a repository named Android.
  2. Then I installed github client in my windows 7.
  3. Then I opened this client, provided my authentication and cloned the repository to a local directory C:\Users\Aniket\Documents\GitHub\Android(This folder has the .git folder in it).
  4. Then I went to my Eclipse ADT and installed EGit plugin as described here. Also I
  5. Then in Eclipse I right click on my project TicTacToe go to Team->Share Project and provide my repository path i.e C:\Users\Aniket\Documents\GitHub\Android.
  6. My Project was added to the local repository and in my github client it shows me all option to commit file in the actual repository on the github site.
  7. But my project is suddenly showing error with a red '!' sign on it.

描述 - > 存档为必需库:'C:/ Users / Aniket / AndroidWorkspace / TicTacToe
/ libs / android-support-v4项目'TicTacToe'中的.jar'无法读取或不是有效的ZIP文件

资源 - > TicTacToe

Resource --> TicTacToe

路径位置 - >构建路径

Path Location --> Build path

类型 - >构建路径问题

Type --> Build Path Problem



    注意:错误是在Eclipse的错误控制台中显示的单行。我只是把它分开来进行可读性。

Note : the Error was a single line displayed in error console on Eclipse. I just split it up for readability.

即使在卸载存储库之后,它显示错误。

Even after detaching repository it shows that error.

有没有人遇到过这种情况之前。什么是解决方案或解决方法?我google了,最初的几个链接表明它是一个Eclipse的bug。请建议可以做些什么来使我的项目恢复到可执行状态?

Has anyone encountered this scenario before. What is the solution or workaround? I googled and first few links suggest it is an Eclipse bug. Please suggest what can be done to bring my project back to executable state?

推荐答案

它可以是Eclipse错误。我几次面对类似的问题。有时关闭并重新开放项目。如果不行,请尝试重新启动Eclipse。

It can be Eclipse bug. I have faced the similar problem several times. closing and reopening the project works sometime. if it doesn't work try restarting Eclipse.

这篇关于无法读取所需库的归档文件或不是有效的ZIP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆