{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1921","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1921/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1921/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1921/events","html_url":"https://github.com/robolectric/robolectric/issues/1921","id":92640016,"number":1921,"title":"NoSuchMethodException: android.app.Activity.attach(...)","user":{"login":"tomrozb","id":4646706,"avatar_url":"https://avatars.githubusercontent.com/u/4646706?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrozb","html_url":"https://github.com/tomrozb","followers_url":"https://api.github.com/users/tomrozb/followers","following_url":"https://api.github.com/users/tomrozb/following{/other_user}","gists_url":"https://api.github.com/users/tomrozb/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrozb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrozb/subscriptions","organizations_url":"https://api.github.com/users/tomrozb/orgs","repos_url":"https://api.github.com/users/tomrozb/repos","events_url":"https://api.github.com/users/tomrozb/events{/privacy}","received_events_url":"https://api.github.com/users/tomrozb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/robolectric/robolectric/labels/3.0","name":"3.0","color":"c7def8"},{"url":"https://api.github.com/repos/robolectric/robolectric/labels/defect","name":"defect","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-02T13:36:52Z","updated_at":"2015-07-02T20:09:53Z","closed_at":null,"body":"I'm getting `NoSuchMethodException` when using `@Config(sdk = 21)` with Robolectric 3 RC-3. This issue doesn't occur with SDK = 18. Any solutions for this issue?\r\n\r\n```\r\njava.lang.RuntimeException: java.lang.NoSuchMethodException: android.app.Activity.attach(android.content.Context, android.app.ActivityThread, android.app.Instrumentation, android.os.IBinder, int, android.app.Application, android.content.Intent, android.content.pm.ActivityInfo, java.lang.CharSequence, android.app.Activity, java.lang.String, android.app.Activity$NonConfigurationInstances, android.content.res.Configuration)\r\n\tat org.robolectric.util.ReflectionHelpers.callInstanceMethod(ReflectionHelpers.java:205)\r\n\tat org.robolectric.internal.runtime.Api19RuntimeAdapter.callActivityAttach(Api19RuntimeAdapter.java:19)\r\n\tat org.robolectric.util.ActivityController.attach(ActivityController.java:56)\r\n\tat org.robolectric.util.ActivityController$1.run(ActivityController.java:121)\r\n\tat org.robolectric.shadows.ShadowLooper.runPaused(ShadowLooper.java:305)\r\n\tat org.robolectric.shadows.CoreShadowsAdapter$2.runPaused(CoreShadowsAdapter.java:45)\r\n\tat org.robolectric.util.ActivityController.create(ActivityController.java:118)\r\n\tat org.robolectric.util.ActivityController.create(ActivityController.java:129)\r\n```"},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/118152509","html_url":"https://github.com/robolectric/robolectric/issues/1921#issuecomment-118152509","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/1921","id":118152509,"user":{"login":"tomrozb","id":4646706,"avatar_url":"https://avatars.githubusercontent.com/u/4646706?v=3","gravatar_id":"","url":"https://api.github.com/users/tomrozb","html_url":"https://github.com/tomrozb","followers_url":"https://api.github.com/users/tomrozb/followers","following_url":"https://api.github.com/users/tomrozb/following{/other_user}","gists_url":"https://api.github.com/users/tomrozb/gists{/gist_id}","starred_url":"https://api.github.com/users/tomrozb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomrozb/subscriptions","organizations_url":"https://api.github.com/users/tomrozb/orgs","repos_url":"https://api.github.com/users/tomrozb/repos","events_url":"https://api.github.com/users/tomrozb/events{/privacy}","received_events_url":"https://api.github.com/users/tomrozb/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T20:09:53Z","updated_at":"2015-07-02T20:09:53Z","body":"No, except the robolectric.properties file, but it's still set to 21.\r\n\r\nI've no idea why this happens, that's why I haven't posted any code to reproduce. It's just Activity with Fragment inside, that's it. "}}