{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/2180","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/2180/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/2180/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/2180/events","html_url":"https://github.com/robolectric/robolectric/issues/2180","id":122523833,"number":2180,"title":"Instant Run gradle:2.0.0-alpha2 problem","user":{"login":"sibeliusseraphini","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibeliusseraphini","html_url":"https://github.com/sibeliusseraphini","followers_url":"https://api.github.com/users/sibeliusseraphini/followers","following_url":"https://api.github.com/users/sibeliusseraphini/following{/other_user}","gists_url":"https://api.github.com/users/sibeliusseraphini/gists{/gist_id}","starred_url":"https://api.github.com/users/sibeliusseraphini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibeliusseraphini/subscriptions","organizations_url":"https://api.github.com/users/sibeliusseraphini/orgs","repos_url":"https://api.github.com/users/sibeliusseraphini/repos","events_url":"https://api.github.com/users/sibeliusseraphini/events{/privacy}","received_events_url":"https://api.github.com/users/sibeliusseraphini/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T15:07:36Z","updated_at":"2015-12-16T15:21:56Z","closed_at":"2015-12-16T15:13:49Z","body":"This problem - https://code.google.com/p/android/issues/detail?id=194996 is still happening on gradle 2 alpha2\r\n```\r\njava.lang.RuntimeException: java.lang.ClassNotFoundException: Could not find a class for package: com.example and class name: com.android.tools.fd.runtime.BootstrapApplication\r\n\tat org.robolectric.DefaultTestLifecycle.createApplication(DefaultTestLifecycle.java:61)\r\n\tat org.robolectric.DefaultTestLifecycle.createApplication(DefaultTestLifecycle.java:15)\r\n\tat org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:115)\r\n\tat org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:443)\r\n\tat org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:247)\r\n\tat org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:188)\r\n\tat org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)\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:152)\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:69)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)\r\nCaused by: java.lang.ClassNotFoundException: Could not find a class for package: com.example and class name: com.android.tools.fd.runtime.BootstrapApplication\r\n\tat org.robolectric.internal.ClassNameResolver.resolve(ClassNameResolver.java:25)\r\n\tat org.robolectric.DefaultTestLifecycle.createApplication(DefaultTestLifecycle.java:59)\r\n\t... 22 more\r\n```\r\n\r\nIs there any workaround?"},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/165139540","html_url":"https://github.com/robolectric/robolectric/issues/2180#issuecomment-165139540","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/2180","id":165139540,"user":{"login":"sibeliusseraphini","id":2005841,"avatar_url":"https://avatars.githubusercontent.com/u/2005841?v=3","gravatar_id":"","url":"https://api.github.com/users/sibeliusseraphini","html_url":"https://github.com/sibeliusseraphini","followers_url":"https://api.github.com/users/sibeliusseraphini/followers","following_url":"https://api.github.com/users/sibeliusseraphini/following{/other_user}","gists_url":"https://api.github.com/users/sibeliusseraphini/gists{/gist_id}","starred_url":"https://api.github.com/users/sibeliusseraphini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sibeliusseraphini/subscriptions","organizations_url":"https://api.github.com/users/sibeliusseraphini/orgs","repos_url":"https://api.github.com/users/sibeliusseraphini/repos","events_url":"https://api.github.com/users/sibeliusseraphini/events{/privacy}","received_events_url":"https://api.github.com/users/sibeliusseraphini/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T15:21:56Z","updated_at":"2015-12-16T15:21:56Z","body":"Another workaround is to set\r\n\r\n```\r\n@Config(application = MyApplication.class)\r\n```"}}