Android Studio 2.0 update - public static volatile com.android.tools.fd.runtime.IncrementalChange

After updating from Android 2.0, a new new field was added to my public static volatile com.android.tools.fd.runtime.IncrementalChange com.pr4.models.User model object. $ change

What problem did I encounter: i.e. I read a field using a reflection package and created a dynamic table using fields, and my application crashed due to a new change to the $ field. If I set a check to skip a certain field of the modifier, then I have to make a lot of changes. Why was a new field added at runtime in my code, how to get rid of it?

+6
source share
1 answer

This is due to Instant Run a new feature introduced in the studio Android 2.0, and it can be disabled as follows.

http://tools.android.com/tech-docs/instant-run

By default, Android Studio automatically restarts the current activity after performing a hot swap, and the application continues to work. To disable this option:

Open the Preferences or Preferences dialog box.

Go to build, run, deploy> Instant Run.

Uncheck "Restart" when changing the code. If automatic restart of activity is disabled, you can manually restart the current activity in the menu bar by choosing Run> Restart Activity.

+7
source

All Articles