title: Error: Could not access the Package Manager. Is the system running? - At Android Studio
body: <p>I installed android studio and tried to run easy projects.</p>
  
  <p>But I caught strange error message:</p>
  
  <pre><code>Waiting for device.
  /usr/local/idea/android-studio/sdk/tools/emulator -avd Nexus-4-18-xhdpi -netspeed full -netdelay none
  
  emulator: emulator window was out of view and was recentered
  
  Device connected: emulator-5554
  Device is online: emulator-5554
  Target device: Nexus-4-18-xhdpi [emulator-5554]
  Uploading file
      local path: /home/nazar/Documents/coursera-android/Examples/HelloAndroid/out/production/HelloAndroid/HelloAndroid.apk
      remote path: /data/local/tmp/course.examples.HelloWorld.HelloWorld
  Installing course.examples.HelloWorld.HelloWorld
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/course.examples.HelloWorld.HelloWorld"
  Error: Could not access the Package Manager.  Is the system running?
  </code></pre>
  
  <p>I couldn't figure out why this happen?</p>
  
  <p>I installed sdk version and configured emulator. Any suggestions?</p>
  
  <p>Here is emulator confiuration:</p>
  
  <p><img src="https://i.stack.imgur.com/1sgJ4.png" alt="emulator confiuration"></p>
  
  <p><strong>Update:</strong></p>
  
  <p>I tried to install Genymotion device and use few virtual devices, but caught:</p>
  
  <pre><code>Waiting for device.
  Target device: genymotion-nexus_4___4_4_2___api_19___768x1280-192.168.56.101:5555
  Uploading file
      local path: /home/nazar/Documents/coursera-android/Examples/HelloAndroid/out/production/HelloAndroid/HelloAndroid.apk
      remote path: /data/local/tmp/course.examples.HelloWorld.HelloWorld
  Installing course.examples.HelloWorld.HelloWorld
  DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/course.examples.HelloWorld.HelloWorld"
  WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
  Error: Could not access the Package Manager.  Is the system running?
  </code></pre>
  
  <p><strong>How to solve this error?</strong></p>