Hello, World! I’m currently having a weird `java....
# android
b
Hello, World! I’m currently having a weird
java.lang.VerifyError
crash when my app starts. I think it’s a Kotlin compiler bug, but not sure. I’ve singled out the exact line that makes this happen (if I comment it, it works). The exact error is:
Copy code
java.lang.VerifyError: Verifier rejected class org.jraf.android.cinetoday.app.loadmovies.LoadMoviesHelper: void org.jraf.android.cinetoday.app.loadmovies.LoadMoviesHelper.loadMovies$app_debug() failed to verify: void org.jraf.android.cinetoday.app.loadmovies.LoadMoviesHelper.loadMovies$app_debug(): [0x4A] 'this' argument 'Reference: java.lang.Object' not instance of 'Precise Reference: org.jraf.android.cinetoday.model.movie.Movie' (declaration of 'org.jraf.android.cinetoday.app.loadmovies.LoadMoviesHelper' appears in /data/app/org.jraf.android.cinetoday-1/base.apk)
And the line causing it is this:
val allMoviewFromDbById = allMoviesFromDb.associateBy { it.id }
I know it’s a long shot but… any idea? 😛
p
Ur using Android studio 3.2 canary 3?
b
Yes sir
I guess I'll open a bug...