Android app working on emulator but not on real device

后端 未结 3 1417
星月不相逢
星月不相逢 2020-12-04 00:02

Just wrote this simple app for testing: one button that displays date and hour, and another button that selects a random color and shows it. It works fine on Emulator but th

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 00:43

    if Instant Run is activated this causes some classes to be moved. To disable Instant Run Go to File -> Settings -> Build,Execution,Deployment ->Instant Run -> uncheck "Enable instant run"

提交回复
热议问题