Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

could not access the package manager. is the system running while installing android application

While installing the android application in the emulator I am getting the following error.

Please help me to resolve this error.

Error message:

emulator.exe -avd avd_name

adb wait-for-device    

adb install path-to.apk    

could not access the package manager. is the system running while installing android application....
like image 254
arunkumar.p Avatar asked Mar 20 '13 12:03

arunkumar.p


3 Answers

You need to wait for the emulator to full start - takes a few minutes. Once it is fully started (UI on the emulator will change), it should work.

You will need to restart the app after the emulator is running and choose the running emulator when prompted.

like image 87
ssaltman Avatar answered Nov 03 '22 16:11

ssaltman


As other have said, this error occurs because the emulator is still in the process of launching. An attempt to access the package manager, for the device, at this time causes an error.

It's just a simple timing issue. Here are the steps to avoid this error:

  1. Wait until the emulator 'lock screen' is showing.
  2. Run the 'app' again (^R in most IDE's).
  3. Choose the running device (Should be the same emulator).

App should install without error.

like image 24
Saeed Gatson Avatar answered Nov 03 '22 16:11

Saeed Gatson


In my case it was just that the emulator took 9 minutes to start. Wait until you see the lock icon on the emulator LCD. Or use actual tablet or phone.

like image 5
Trevor Avatar answered Nov 03 '22 14:11

Trevor