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
error when setup activity version 3.1.1 #2625
Comments
the problem is with android sdk version. set sdk = Build.VERSION_CODES.LOLLIPOP solve my problem. But I think you have to mention this problem in documentation and add this to your milestone |
Hey @siavashabdoli do you use a Custom robolectric test runner? If yes, could you share it here? I have the same problem like you but the sdk change did not fix it. It would be great if you could also share your robolectric.properties file. Thnx! |
@siavashabdoli Please format this for an easier read. This is a duplicate of #1932. |
@Aksi0m no i don't have anything custom only I create custom application class because real application class try to connect to internet and set config of google Analytics event. My version is 3.1.1 . you can create issue or stackoverflow question and share your error and classes maybe someone can help you :) |
@jaredsburrows sort of duplicate but not exactly same issue. why I have to understand this error is related to sdk version? Ok i'll try to reformat it :) |
@siavashabdoli This is a duplicate. This has already been report starting wit API 23. |
@jaredsburrows Ok set this as duplicate ;) |
@siavashabdoli Just close this. |
I hava the same problem with Robolectric 3.3.who can solve this, help me please. |
Dupe of #1932. |
Description
Can't Run test because I have error on setContentView when setup Activity
Steps to Reproduce
Robolectric & Android Version
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:robolectric:3.1.1'
testCompile "org.mockito:mockito-core:1.10.19"
compileSdkVersion 23
minSdkVersion 10
targetSdkVersion 23
The text was updated successfully, but these errors were encountered: