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

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

问题描述

在解决问题之前,让我解释一下我做了什么让我陷入了问题.

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

  1. 我在 github 上创建了一个帐户,并创建了一个名为 Android 的存储库.
  2. 然后我在 Windows 7 中安装了 github 客户端.
  3. 然后我打开了这个客户端,提供了我的身份验证并将存储库克隆到本地目录 C:UsersAniketDocumentsGitHubAndroid(这个文件夹有 .git 文件夹).
  4. 然后我去我的 Eclipse ADT 并安装了 EGit 插件,如这里.我也
  5. 然后在 Eclipse 中,我右键单击我的项目 TicTacToe 转到 Team->Share Project 并提供我的存储库路径,即 C:UsersAniketDocumentsGitHubAndroid.
  6. 我的项目已添加到本地存储库,并且在我的 github 客户端中,它向我显示了在 github 站点上的实际存储库中提交文件的所有选项.
  7. 但是我的项目突然显示错误并带有红色!"在上面签字.

  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:UsersAniketDocumentsGitHubAndroid(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:UsersAniketDocumentsGitHubAndroid.
  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.

Description --> 所需库的存档:'C:/Users/Aniket/AndroidWorkspace/TicTacToe项目井字游戏"中的/libs/android-support-v4.jar' 无法读取或不是有效的 ZIP 文件

Description --> Archive for required library: 'C:/Users/Aniket/AndroidWorkspace/TicTacToe /libs/android-support-v4.jar' in project 'TicTacToe' cannot be read or is not a valid ZIP file

资源 --> 井字游戏

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.

有没有人遇到过这种情况.什么是解决方案或解决方法?我用谷歌搜索,前几个链接表明这是一个 Eclipse 错误.请建议如何将我的项目恢复到可执行状态?

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 is an 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天全站免登陆