Create a robolectric.properties
file inside the app/src/test/resources
directory with the following line:
sdk=28
This will force Robolectric to use API 28 instead of 29.
Create a robolectric.properties
file inside the app/src/test/resources
directory with the following line:
sdk=28
This will force Robolectric to use API 28 instead of 29.