https://kotlinlang.org logo
#android
Title
# android
k

kenkyee

01/19/2018, 7:57 PM
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

btilbrook-nextfaze

01/22/2018, 11:47 PM
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

kenkyee

01/23/2018, 12:17 AM
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
11 Views