{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1976","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1976/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1976/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1976/events","html_url":"https://github.com/robolectric/robolectric/issues/1976","id":99402133,"number":1976,"title":"error initiating an activity to test","user":{"login":"jonneymendoza","id":2699740,"avatar_url":"https://avatars.githubusercontent.com/u/2699740?v=3","gravatar_id":"","url":"https://api.github.com/users/jonneymendoza","html_url":"https://github.com/jonneymendoza","followers_url":"https://api.github.com/users/jonneymendoza/followers","following_url":"https://api.github.com/users/jonneymendoza/following{/other_user}","gists_url":"https://api.github.com/users/jonneymendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/jonneymendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonneymendoza/subscriptions","organizations_url":"https://api.github.com/users/jonneymendoza/orgs","repos_url":"https://api.github.com/users/jonneymendoza/repos","events_url":"https://api.github.com/users/jonneymendoza/events{/privacy}","received_events_url":"https://api.github.com/users/jonneymendoza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-06T10:07:16Z","updated_at":"2015-08-14T13:40:52Z","closed_at":null,"body":"Hi i get the following error when i try to initiate my activity using this code below:\r\n```\r\n@RunWith(RobolectricGradleTestRunner.class)\r\n@Config(constants = BuildConfig.class)\r\npublic class BillingdetailsTest {\r\n\r\n    private EditText cardTextField;\r\n\r\n    @Before\r\n    public void setup() {\r\n        TestActivity activity = Robolectric.setupActivity(TestActivity.class);\r\n        cardTextField = new EditText<Object>(activity.getApplicationContext());\r\n        BillingEditTextWatcher textWatcherNoneAmex = new BillingEditTextWatcher(EditText.TYPE_CARD_NUMBER, cardTextField);\r\n    }\r\n\r\n    @Test\r\n    public void testCardInput() {\r\n        String cardTest = \"4111 1111\";\r\n        String cardTestTwo = \"4111 1\";\r\n        String cardTestThree = \"4111 1111 2222 3333\";\r\n    }\r\n}\r\n\r\n```\r\nIt fails on this line:\r\n```\r\nTestActivity activity = Robolectric.setupActivity(TestActivity.class);\r\n```\r\nHere is the exception i get:\r\n```\r\nXML file jar:/Users/jonathan/.m2/repository/org/robolectric/android-all/4.4_r1-robolectric-1/android-all-4.4_r1-robolectric-1.jar!/res/layout/screen_action_bar.xml line #-1 (sorry, not yet implemented): Error inflating class com.android.internal.widget.ActionBarContainer\r\nandroid.view.InflateException: XML file jar:/Users/jonathan/.m2/repository/org/robolectric/android-all/4.4_r1-robolectric-1/android-all-4.4_r1-robolectric-1.jar!/res/layout/screen_action_bar.xml line #-1 (sorry, not yet implemented): Error inflating class com.android.internal.widget.ActionBarContainer\r\n\tat android.view.LayoutInflater.createView(LayoutInflater.java:620)\r\n\tat android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)\r\n\tat android.view.LayoutInflater.rInflate(LayoutInflater.java:755)\r\n\tat android.view.LayoutInflater.inflate(LayoutInflater.java:492)\r\n\tat android.view.LayoutInflater.inflate(LayoutInflater.java:397)\r\n\tat android.view.LayoutInflater.inflate(LayoutInflater.java:353)\r\n\tat com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2966)\r\n\tat com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3029)\r\n\tat com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:286)\r\n\tat android.app.Activity.setContentView(Activity.java:1928)\r\n\tat android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:216)\r\n\tat android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)\r\n\tat android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:76)\r\n```\r\nAny ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/131108744","html_url":"https://github.com/robolectric/robolectric/issues/1976#issuecomment-131108744","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/1976","id":131108744,"user":{"login":"jonneymendoza","id":2699740,"avatar_url":"https://avatars.githubusercontent.com/u/2699740?v=3","gravatar_id":"","url":"https://api.github.com/users/jonneymendoza","html_url":"https://github.com/jonneymendoza","followers_url":"https://api.github.com/users/jonneymendoza/followers","following_url":"https://api.github.com/users/jonneymendoza/following{/other_user}","gists_url":"https://api.github.com/users/jonneymendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/jonneymendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonneymendoza/subscriptions","organizations_url":"https://api.github.com/users/jonneymendoza/orgs","repos_url":"https://api.github.com/users/jonneymendoza/repos","events_url":"https://api.github.com/users/jonneymendoza/events{/privacy}","received_events_url":"https://api.github.com/users/jonneymendoza/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T13:40:52Z","updated_at":"2015-08-14T13:40:52Z","body":"i just upgraded to 3.0 but still get the same error\r\n\r\njava.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.\r\n\tat android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:108)\r\n\tat android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:57)\r\n\tat android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:98)\r\n"}}