{"action":"closed","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1623","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1623/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1623/events","html_url":"https://github.com/robolectric/robolectric/issues/1623","id":61706420,"number":1623,"title":"ResourcesNotFoundException: No such label com.mypackage.myflavourA","user":{"login":"vkislicins","id":6248215,"avatar_url":"https://avatars.githubusercontent.com/u/6248215?v=3","gravatar_id":"","url":"https://api.github.com/users/vkislicins","html_url":"https://github.com/vkislicins","followers_url":"https://api.github.com/users/vkislicins/followers","following_url":"https://api.github.com/users/vkislicins/following{/other_user}","gists_url":"https://api.github.com/users/vkislicins/gists{/gist_id}","starred_url":"https://api.github.com/users/vkislicins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkislicins/subscriptions","organizations_url":"https://api.github.com/users/vkislicins/orgs","repos_url":"https://api.github.com/users/vkislicins/repos","events_url":"https://api.github.com/users/vkislicins/events{/privacy}","received_events_url":"https://api.github.com/users/vkislicins/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":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/robolectric/robolectric/milestones/5","html_url":"https://github.com/robolectric/robolectric/milestones/3.0","labels_url":"https://api.github.com/repos/robolectric/robolectric/milestones/5/labels","id":870515,"number":5,"title":"3.0","description":null,"creator":{"login":"erd","id":184194,"avatar_url":"https://avatars.githubusercontent.com/u/184194?v=3","gravatar_id":"","url":"https://api.github.com/users/erd","html_url":"https://github.com/erd","followers_url":"https://api.github.com/users/erd/followers","following_url":"https://api.github.com/users/erd/following{/other_user}","gists_url":"https://api.github.com/users/erd/gists{/gist_id}","starred_url":"https://api.github.com/users/erd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erd/subscriptions","organizations_url":"https://api.github.com/users/erd/orgs","repos_url":"https://api.github.com/users/erd/repos","events_url":"https://api.github.com/users/erd/events{/privacy}","received_events_url":"https://api.github.com/users/erd/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":42,"state":"open","created_at":"2014-11-18T01:23:28Z","updated_at":"2015-04-23T23:18:08Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-03-14T22:33:04Z","updated_at":"2015-04-23T23:18:08Z","closed_at":"2015-04-23T23:18:08Z","body":"Getting the following exception when running a flavoured Robolectric test:\r\n\r\n```\r\n android.content.res.Resources$NotFoundException: no such label com.mypackage.myflavour.a\r\n```\r\n\r\nIn my build.gradle I declare two productFlavors with two different ids - com.mypackage.myflavour and com.mypackage.myflavour.a.\r\n\r\nTo get the right resources like appcompat I use a custom test runner base on the following example:\r\n\r\nhttps://github.com/nenick/AndroidStudioAndRobolectric/blob/master/app/src/test/java/com/example/myapplication/CustomRobolectricRunner.java\r\n\r\n"}}