{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/795","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/795/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/795/events","html_url":"https://github.com/robolectric/robolectric/issues/795","id":21680232,"number":795,"title":"ActionBarSherlock and Robolectric within Gradle context","user":{"login":"tbruyelle","id":92280,"avatar_url":"https://avatars.githubusercontent.com/u/92280?v=3","gravatar_id":"","url":"https://api.github.com/users/tbruyelle","html_url":"https://github.com/tbruyelle","followers_url":"https://api.github.com/users/tbruyelle/followers","following_url":"https://api.github.com/users/tbruyelle/following{/other_user}","gists_url":"https://api.github.com/users/tbruyelle/gists{/gist_id}","starred_url":"https://api.github.com/users/tbruyelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbruyelle/subscriptions","organizations_url":"https://api.github.com/users/tbruyelle/orgs","repos_url":"https://api.github.com/users/tbruyelle/repos","events_url":"https://api.github.com/users/tbruyelle/events{/privacy}","received_events_url":"https://api.github.com/users/tbruyelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-10-28T10:23:17Z","updated_at":"2015-07-02T15:24:40Z","closed_at":null,"body":"While initializing an activity or a fragment in a junit with Robolectric 2.3-SNAPSHOT and ActionbarSherlock 4.4.0, in a project which uses the Gradle build, I get some exceptions like : \r\n\r\n```\r\njava.lang.RuntimeException: java.io.FileNotFoundException: AndroidManifest.xml (No such file or directory)\r\n\tat org.robolectric.res.XmlLoader.parse(XmlLoader.java:39)\r\n\tat org.robolectric.res.builder.XmlFileBuilder.getXmlResourceParser(XmlFileBuilder.java:56)\r\n\tat org.robolectric.shadows.ShadowAssetManager.openXmlResourceParser(ShadowAssetManager.java:174)\r\n\tat android.content.res.AssetManager.openXmlResourceParser(AssetManager.java)\r\n\tat android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:444)\r\n\tat com.actionbarsherlock.internal.ResourcesCompat.loadLogoFromManifest(ResourcesCompat.java:120)\r\n\tat com.actionbarsherlock.internal.widget.ActionBarView.<init>(ActionBarView.java:189)\r\n\tat android.view.LayoutInflater.createView(LayoutInflater.java:587)\r\n...\r\n```\r\n\r\nIt seems the `AndroidManifest.xml` file is not search at the right place, which is, in a Gradle context, `build/manifests/debug/`.\r\n\r\nI already use @JakeWharton 's `gradle-android-test-plugin` and some others tests I wrote work well with my project resources inside the `build` dir.\r\n\r\nThe current issue really seems to be linked to some methods invoked inside ActionBarSherlock."},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/118067466","html_url":"https://github.com/robolectric/robolectric/issues/795#issuecomment-118067466","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/795","id":118067466,"user":{"login":"tbruyelle","id":92280,"avatar_url":"https://avatars.githubusercontent.com/u/92280?v=3","gravatar_id":"","url":"https://api.github.com/users/tbruyelle","html_url":"https://github.com/tbruyelle","followers_url":"https://api.github.com/users/tbruyelle/followers","following_url":"https://api.github.com/users/tbruyelle/following{/other_user}","gists_url":"https://api.github.com/users/tbruyelle/gists{/gist_id}","starred_url":"https://api.github.com/users/tbruyelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbruyelle/subscriptions","organizations_url":"https://api.github.com/users/tbruyelle/orgs","repos_url":"https://api.github.com/users/tbruyelle/repos","events_url":"https://api.github.com/users/tbruyelle/events{/privacy}","received_events_url":"https://api.github.com/users/tbruyelle/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T15:24:40Z","updated_at":"2015-07-02T15:24:40Z","body":"I have no idea, I think you can close it safely since all mentionned items are deprecated !"}}