{"action":"created","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/2144","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/2144/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/2144/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/2144/events","html_url":"https://github.com/robolectric/robolectric/issues/2144","id":117138160,"number":2144,"title":"AndroidManifest.xml not found if using ABI splits","user":{"login":"csdodd","id":4302925,"avatar_url":"https://avatars.githubusercontent.com/u/4302925?v=3","gravatar_id":"","url":"https://api.github.com/users/csdodd","html_url":"https://github.com/csdodd","followers_url":"https://api.github.com/users/csdodd/followers","following_url":"https://api.github.com/users/csdodd/following{/other_user}","gists_url":"https://api.github.com/users/csdodd/gists{/gist_id}","starred_url":"https://api.github.com/users/csdodd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csdodd/subscriptions","organizations_url":"https://api.github.com/users/csdodd/orgs","repos_url":"https://api.github.com/users/csdodd/repos","events_url":"https://api.github.com/users/csdodd/events{/privacy}","received_events_url":"https://api.github.com/users/csdodd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T14:39:09Z","updated_at":"2015-12-03T07:46:11Z","closed_at":null,"body":"I have a project that uses [ABI splits](https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide/apk-splits).\r\n\r\nThis causes AndroidManifest.xml to end up in a slightly different location than that expected by `RobolectricGradleTestRunner`.\r\n\r\n ABI Split State | AndroidManifest.xml location\r\n------------- | -------------\r\nABI Split Disabled | `build/intermediates/manifests/full/[flavor]/[type]/AndroidManifest.xml`\r\nABI Split Enabled | `build/intermediates/manifests/full/[flavor]/[abi]/[type]/AndroidManifest.xml`\r\n\r\n`RobolectricGradleTestRunner` fails to find AndroidManifest.xml when ABI splits are enabled because it has no concept of which ABI directory to look in (not that it actually matters which one is chosen).\r\n\r\nI fixed this by making a local copy of `RobolectricGradleTestRunner` and ensuring the path to the manifest file takes into consideration the ABI directory. It could be possible to fix this by setting ABI in `BuildConfig` (the same way flavor and type are read). I might give it a go myself."},"comment":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/comments/161542986","html_url":"https://github.com/robolectric/robolectric/issues/2144#issuecomment-161542986","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/2144","id":161542986,"user":{"login":"adauvalter","id":5400965,"avatar_url":"https://avatars.githubusercontent.com/u/5400965?v=3","gravatar_id":"","url":"https://api.github.com/users/adauvalter","html_url":"https://github.com/adauvalter","followers_url":"https://api.github.com/users/adauvalter/followers","following_url":"https://api.github.com/users/adauvalter/following{/other_user}","gists_url":"https://api.github.com/users/adauvalter/gists{/gist_id}","starred_url":"https://api.github.com/users/adauvalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adauvalter/subscriptions","organizations_url":"https://api.github.com/users/adauvalter/orgs","repos_url":"https://api.github.com/users/adauvalter/repos","events_url":"https://api.github.com/users/adauvalter/events{/privacy}","received_events_url":"https://api.github.com/users/adauvalter/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T07:46:11Z","updated_at":"2015-12-03T07:46:11Z","body":"I'm facing the same problem. Could you please post you solution here?"}}