Is there a compatibility issue w/ Kotlin 1.2.20 an...
# android
k
Is there a compatibility issue w/ Kotlin 1.2.20 and RoboElectric? I get this error trying to run tests in Android Studio (but it works on the command line via "gradle testXXXX"): Exception in thread "main" java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.robolectric.annotation.Config.application() All tests have "@Config(constants = BuildConfig.class, sdk = 21)" Backing down to 1.2.10 and plugin 1.2.10 makes everything run properly again.
b
I’ve experienced this is AS 3.1 Canary 8, and I believe it’s related to this issue: https://issuetracker.google.com/issues/72193159
k
I was seeing this problem on AS 3.1 and 3.0.1. Probably a bug in the kotlin 1.2.20 Gradle plugin. Thanks