{"action":"opened","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1806","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1806/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1806/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1806/events","html_url":"https://github.com/robolectric/robolectric/issues/1806","id":76221912,"number":1806,"title":"No Class def found error.","user":{"login":"hronik1","id":1770336,"avatar_url":"https://avatars.githubusercontent.com/u/1770336?v=3","gravatar_id":"","url":"https://api.github.com/users/hronik1","html_url":"https://github.com/hronik1","followers_url":"https://api.github.com/users/hronik1/followers","following_url":"https://api.github.com/users/hronik1/following{/other_user}","gists_url":"https://api.github.com/users/hronik1/gists{/gist_id}","starred_url":"https://api.github.com/users/hronik1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hronik1/subscriptions","organizations_url":"https://api.github.com/users/hronik1/orgs","repos_url":"https://api.github.com/users/hronik1/repos","events_url":"https://api.github.com/users/hronik1/events{/privacy}","received_events_url":"https://api.github.com/users/hronik1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-14T04:07:32Z","updated_at":"2015-05-14T04:07:32Z","closed_at":null,"body":"Exception in thread \"main\" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:191)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:122)\r\nCaused by: java.lang.ClassNotFoundException: junit.textui.ResultPrinter\r\n...\r\n\r\nAbove error when attempting to run tests.\r\nTarget api version 21, using android studio 1.2 and added below test dependencies in the build.gradle:\r\n    testCompile 'junit:junit:4.12'\r\n    testCompile \"org.mockito:mockito-core:1.9.5\"\r\n    testCompile \"org.robolectric:robolectric:3.0-rc2\""}}