5

I've researched articles on this and nothing seems to work. I am trying to run the code with an emulator. All the data is wiped on the emulator.

When i run the code on the emulator I get an error:

enter image description here

When I click OK. I get this error:

enter image description here

I am unsure how to get rid of this message. Any help?

Things done so far:

ankuranurag2
  • 2,300
  • 15
  • 30
swstrau118
  • 181
  • 4
  • 7
  • 15

3 Answers3

5

Did you tried below steps -

  • Turn off Instant Run feature from settings(File ~> Settings ~> Build, Execution, Deployment).

  • Perform a clean build.

  • Turn on Instant Run feature from settings.

  • Perform a clean build.

  • Invalidate Cache/ Restart from menu option

Note :- If you have any device connected with system then disconnect first.

VikaS GuttE
  • 1,636
  • 2
  • 14
  • 38
2

Android Studio Settings (if you are on windows)/Preferences (if you are on macOS) > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run.

denis_lor
  • 6,212
  • 4
  • 31
  • 55
2

This colud also happen if you run out of storage, so make sure You have enough free storage on your device before running the app.

ALI3N
  • 302
  • 4
  • 10