{"action":"created","issue":{"url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/4","labels_url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/4/comments","events_url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/4/events","html_url":"https://github.com/nenick/AndroidStudioAndRobolectric/issues/4","id":58937215,"number":4,"title":"java.lang.RuntimeException: java.lang.ClassNotFoundException: android.app.Application","user":{"login":"vanniktech","id":5759366,"avatar_url":"https://avatars.githubusercontent.com/u/5759366?v=3","gravatar_id":"","url":"https://api.github.com/users/vanniktech","html_url":"https://github.com/vanniktech","followers_url":"https://api.github.com/users/vanniktech/followers","following_url":"https://api.github.com/users/vanniktech/following{/other_user}","gists_url":"https://api.github.com/users/vanniktech/gists{/gist_id}","starred_url":"https://api.github.com/users/vanniktech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanniktech/subscriptions","organizations_url":"https://api.github.com/users/vanniktech/orgs","repos_url":"https://api.github.com/users/vanniktech/repos","events_url":"https://api.github.com/users/vanniktech/events{/privacy}","received_events_url":"https://api.github.com/users/vanniktech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-25T17:17:48Z","updated_at":"2015-02-26T05:53:38Z","closed_at":null,"body":"When I try to run your library example and want to execute the `RobolectricCoreTest` I get this exception:\r\n\r\n> java.lang.RuntimeException: java.lang.ClassNotFoundException: android.app.Application\r\n\tat org.robolectric.annotation.Config$Implementation.parseApplication(Config.java:123)\r\n\tat org.robolectric.annotation.Config$Implementation.fromProperties(Config.java:92)\r\n\tat com.example.core.CustomRobolectricRunner.overwriteConfig(CustomRobolectricRunner.java:37)\r\n\tat com.example.core.CustomRobolectricRunner.getAppManifest(CustomRobolectricRunner.java:29)\r\n\tat org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:182)\r\n\tat org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:158)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:137)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)\r\nCaused by: java.lang.ClassNotFoundException: android.app.Application\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:366)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:355)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:354)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:425)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:358)\r\n\tat org.robolectric.annotation.Config$Implementation.parseApplication(Config.java:120)\r\n\t... 23 more\r\n\r\nIs there any way that I can fix that one? Basically every Unit Test class works except for `RobolectricCoreTest`\r\n\r\nAdding `android.sourceSets.test.java.srcDirs += \"build/generated/source/r/debug\"` worked for the `R.` issue."},"comment":{"url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/comments/76126343","html_url":"https://github.com/nenick/AndroidStudioAndRobolectric/issues/4#issuecomment-76126343","issue_url":"https://api.github.com/repos/nenick/AndroidStudioAndRobolectric/issues/4","id":76126343,"user":{"login":"nenick","id":2276487,"avatar_url":"https://avatars.githubusercontent.com/u/2276487?v=3","gravatar_id":"","url":"https://api.github.com/users/nenick","html_url":"https://github.com/nenick","followers_url":"https://api.github.com/users/nenick/followers","following_url":"https://api.github.com/users/nenick/following{/other_user}","gists_url":"https://api.github.com/users/nenick/gists{/gist_id}","starred_url":"https://api.github.com/users/nenick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nenick/subscriptions","organizations_url":"https://api.github.com/users/nenick/orgs","repos_url":"https://api.github.com/users/nenick/repos","events_url":"https://api.github.com/users/nenick/events{/privacy}","received_events_url":"https://api.github.com/users/nenick/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T05:53:38Z","updated_at":"2015-02-26T05:53:38Z","body":"Our issue could be related to https://code.google.com/p/android/issues/detail?id=156027"}}