Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resources not found exception when applicationId is altered #21

Open
apolatynski opened this issue May 14, 2015 · 1 comment
Open

Resources not found exception when applicationId is altered #21

apolatynski opened this issue May 14, 2015 · 1 comment

Comments

@apolatynski
Copy link

Running Robolectric tests fail with a android.content.res.Resources$NotFoundException when in build.gradle the applicationId is changed.

The exception happens when applicationId is set in defaultConfig or a build flavor to a value different than the one in the AndroidManifest. Same thing happens when applicationIdSuffix is used.

@nenick
Copy link
Owner

nenick commented May 14, 2015

Just changing the applicationId should not give any erros but use different applicationIds is a known issue. Try the posted workaround robolectric/robolectric#1623 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants