Can't start Roboelectric test.

I keep getting

java.lang.NoClassDefFoundError: android / content / pm / PackageManager $ NameNotFoundException ... java.lang.ClassNotFoundException: could not 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 fix it?

+4
source share
2 answers

yours jar filemay be corrupted, so re-add the jar file or the rebuildpath to the jar file ... clear the project and run it.

0
source

You need to install sources for Android Android from the Android SDK

0

Source: https://habr.com/ru/post/1612922/


All Articles