When will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion
and compileSdkVersion
to 29?
With Robolectric 4.3.1 we can use the following alternatives:
If we like to run our test with Java 8, we can:
Like this:
@RunWith(AndroidJUnit4::class)
@Config(sdk = [Build.VERSION_CODES.P])
class LoginRobolectricTest {
//...
}
app/src/test/resources
folder with the SDK we like to run, by example:sdk=28