archive for required library could not be read or is not a valid ZIP file

后端 未结 18 2269
醉梦人生
醉梦人生 2020-12-03 04:27

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.
相关标签:
18条回答
  • 2020-12-03 05:19

    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.

    0 讨论(0)
  • 2020-12-03 05:21

    There is other case to display error Archive for required library

    Right click on project and open --> project project properties --> java build path --> Android private libs

    if there are two jar files with same name then remove one from libs.

    jar file may the hidden some times then open you libs folder in window and check if any hidden files are exist Organize --> folders and search options --> view --> check show hidden files and Delete the hidden jar file , The same cass delete if hidden java fies exist in src and packages if any

    0 讨论(0)
  • 2020-12-03 05:21

    I realize this is an old question, but I have yet another solution if none of these work for other people coming across this thread. I had this same problem, and spent alot of time trying to figure it out, only to find that my Eclipse classpath/buildpath has a .json file in it, it doesn't like that, so it wouldn't compile. So, check to make sure no text files or json files, etc are in your build path.

    0 讨论(0)
  • 2020-12-03 05:25

    I found no duplicates anywhere and tried restarting eclipse, rebuild project. I was getting error for only one libary. So I just tried to rename the jar file from ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar to ksoap2-2.5.8.jar

    So if none of the problems solves from above you can also try this one

    0 讨论(0)
  • 2020-12-03 05:25

    I had accidentally put the web.xml into the build path :x

    0 讨论(0)
  • 2020-12-03 05:26

    In my case, i'd downloaded project from internet, after unzipping project some files had been blocked, just unblock files and try again, then problem was solved.

    0 讨论(0)
提交回复
热议问题