Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to fix 'cmd package install-create -r -t -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package'

How to fix ("cmd package install-create -r -t -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package") error when i launch the emulator.

    'cmd package install-create -r -t  -S 1699739' returns error 'Unknown failure: cmd: Can't find service: package'

20:20 Session 'app': Install failed. Installation failed Rerun

like image 684
Safwan Bardolia Avatar asked Jul 29 '19 15:07

Safwan Bardolia


3 Answers

It's not your fault. The problem is with the functionality of emulator .

SO,

Close the Emulator.

Go to AVD manager and edit virtual device Quick Boot to Cold Boot.

like image 55
Dasun wijesundara Avatar answered Oct 17 '22 01:10

Dasun wijesundara


Try the following steps:

  1. Close the emulator
  2. Cold boot app
  3. Clean Build
  4. Open emulator
  5. Run app
like image 29
chia yongkang Avatar answered Oct 17 '22 03:10

chia yongkang


I had same problem. This is what I did.

  1. Force quit the emulator.
  2. Go to Android Studio, Click on AVD Manager.
  3. In the action column (last column), click the arrow facing down.
  4. Click Cold Boot Now.
  5. Run code from Android Studio again. Things should run normally.

Usually, this happened because the emulator freeze due to the laptop goes to sleep for a long time.

like image 8
Azlan Jamal Avatar answered Oct 17 '22 01:10

Azlan Jamal