Faced with an incomprehensible problem, the procedure is as follows:

  1. I install the application
  2. add widget to screen
  3. I edit the widget in Android Studio
  4. I run the version of the program with the new layout of the widget (for example, added TextView )

After that, the widget remains unchanged (namely the layout, but the code changes). Deleting, adding, creating new instances of the widget - nothing helps. Saves only the removal of the application and the installation again, but it is very inconvenient. Actually the question is the normal behavior of the application when developing widgets, or am I doing something wrong?

  • If you use the second version of the studio, then perhaps it is in it. Try on version 1.5 - YuriySPb

1 answer 1

This is the problem of Instant Run futures when building an application. (Only changes are flooded, time is saved due to the lack of compilation and application building, but there is a problem that not all changes are tracked, hence glitches)

Open Android Studio settings and turn off Instant Run with Futher Settings - Build, Execution, Deployment - Instan Run - Uncheck all daws.

  • If something went wrong and Instant Run does not cope, you can and without disconnecting it, forcibly restart completely by pressing Rerun <app> (CTRL + F5), the icon is a gray square with a green arrow bent up - in general this feature is quite convenient. just to give it up completely. - pavlofff
  • one
    I somehow earned and forgot about the feature and spent an hour of valuable time on useless debug. When he came to life, he cut everything down. I have the habit of shift + f10 restarting ... - Chaynik
  • Ok, problem solved, everything works as it should! Thank you very much! - I. Shelkovnikov