I just updated my small Android project to Kotlin. And as a result I replaced annotationProcessor
with kapt
everywhere it was used in my build.gradle
file. My problem is that although I don't use Guava Android Studio is allowing me to e.g. import com.google.common.base.Preconditions
and use it, but when it comes to launching the app NoClassDefFoundError
is thrown.
So I assume that Guava isn't compiled with my project () and that's why I am getting this error. But then why Android Studio allowing me to use it?