Robolectric and Android SDK 29

前端 未结 4 1856
闹比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条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 20:31

    If anyone is wondering, the solution for me was to annotate my test classes with

    @Config(sdk = Build.VERSION_CODES.O_MR1)
    

提交回复
热议问题