1
When I try to run my app on mobile (emulator happens the same), the following error occurs:
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> com.android.build.api.transform.TransformException:
java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException:
Failed to find byte code for java/util/function/BiConsumer
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 4s
"Solutions" I have tried but not worked:
Update Android Studio (Canary 6),
Update Kotlin (1.2.10),
Update Gradle (3.1.0-alpha06),
Add Multidex dependency
I believe this is a problem with the
Instant Run
instead of with Kotlin. Turn off Instant Run in the settings.– itscorey
It worked! But it’s strange, because on another PC it worked with Instant Run enabled...
– fetchSerotonin
The problem is that some emulators/devices do not have Instant Run support and this error happens.
– itscorey