hmmm i seem to be having major issues with kotlin ...
# android
s
hmmm i seem to be having major issues with kotlin in AS 3.0 canary 6
b
What issues? Did you update Gradle wrapper & AS plugin version in
build.gradle
?
s
i’ve always been able to run the canary AS with the stable plugin in the past
b
Try bumping it to 3.0.0-alpha6, I think there were some breaking changes
s
Hmmm even with the latest gradle and plugin, i’m getting
NoClassDefFoundError
for a kotlin class
canary 5 works fine
oh wait no now canary 5 is failing too. argh
e
tried rebuild + clear cache?
s
yup
ok narrowed down, it’s only an issue with my unit tests. i can build the apk fine
j
Are you using Robolectric? Robolectric is not yet compatible with aapt2. You will need set android.enableAapt2=false in your gradle.properties file.
s
i already have it disabled, but yes, i am using robolectric
it’s working fine from command line with gradle. it’s only broken in AS
and now i somehow got it working again 🙄