Robolectric does not support API level 28
问题 Although this question has been answered for previous versions in other threads, none of the answers seems to work for me with api 28 right now so.. All Robolectric tests worked fine when on api 27. Now when my app api target is 28 they all fail. I have @Config(constants = BuildConfig::class, sdk = [Build.VERSION_CODES.P]) on my test class. Diving into Robolectrics internal SdkConfig.java it looks like they add support for api 28: addSdk(Build.VERSION_CODES.P, "P", "4651975", "P"); But when