Robolectric and Android SDK 29

前端 未结 4 1873
闹比i
闹比i 2020-12-29 19:51

When will Robolectric be compatible with Android SDK 29? Did I upgraded too early by changing targetSdkVersion and compileSdkVersion to 29?

4条回答
  •  -上瘾入骨i
    2020-12-29 20:23

    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.

提交回复
热议问题