In my Android app, I am debugging it with instant start enabled.
An application very often causes unexpected errors that are resolved if I make a clean build.
As an example, sometimes there are class exceptions in which the class is actually absent. In addition, cast class exceptions sometimes occur when trying to pass the View returned by findViewById() target type (probably, the Android studio incorrectly interpreted the identifiers of the elements during hot deployment of layouts).
All these errors are resolved without changing the code, just by doing a complete build. Instant start successfully made the build process two to three times slower for me.
Why am I getting these errors? Does anyone know how to get started quickly?
android android-instant-run
Lahiru chandima
source share