Ran into this error when importing an Android into Android Studio. In this case ActionbarSherlock http://actionbarsherlock.com/
java: C:\..\Android\SherlockActionbar\test\com\actionbarsherlock\internal\ManifestParsingTest.java:3 package org.junit does not exist ... package org.hamcrest does not exist ... static import only from classes and interfaces
Turned out the “test” folder was included. Remove the “test “folder with the package “com.actionbarsherlock.internal” and file ManifestParsingTest