6

I keep on getting

java.lang.NoClassDefFoundError: android/content/pm/PackageManager$NameNotFoundException ... java.lang.ClassNotFoundException: couldn't load android.content.pm.PackageManager$NameNotFoundException... Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)

Any idea what causes this and how to get it fixed?

Manos Nikolaidis
  • 21,608
  • 12
  • 74
  • 82
Ari
  • 3,086
  • 1
  • 19
  • 27

2 Answers2

0

your jar file may be corruptedso re add the jar file orrebuild the path of jar file ... clean the project and re run it.

sud
  • 505
  • 1
  • 4
  • 12
  • This problem occurs only when my emulatedSdk is set to 21. Using the SDK Manager, I deleted that SDK and reinstalled it, but it is still not working. – Ari Oct 23 '15 at 14:36
  • OK then try to upgrade your SDK version from 21 to above, but in most of the cases this problem is occurred due to corrupted .jar file – sud Oct 24 '15 at 05:53
0

You need install sources for android-21 from Android SDK

neic
  • 73
  • 1
  • 6