问题
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?
回答1:
your jar file
may be corrupted
so re add the jar file orrebuild
the path of jar file ... clean the project and re run it.
回答2:
You need install sources for android-21 from Android SDK
来源:https://stackoverflow.com/questions/33303739/cant-run-roboelectric-test