title: (Android Studio 2) Could not access the Package Manager (No emulator)
body: <p>When building the app, it builds fine, but when it comes to installing the app, it's not working.</p>
  
  <p>This is my log when building and trying to install the app.</p>
  
  <pre><code>10/29 20:17:47: Launching app
  $ adb push C:\Users\(Removed)\AndroidStudioProjects\MyFirstApp\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.(Removed).myfirstapp
  $ adb shell pm install -r "/data/local/tmp/com.example.(Removed).myfirstapp"
  pkg: /data/local/tmp/com.example.(Removed).myfirstapp
  android.os.TransactionTooLargeException
  Error: Could not access the Package Manager.  Is the system running?
  
  
  $ adb shell pm uninstall com.example.(Removed).myfirstapp
  Unknown failure (Failure)
  Error while Installing APK
  </code></pre>
  
  <p>The (Removed)'s are my computers name(Not actually, just don't want to spread its real name on the internet)</p>
  
  <p>Now before you go and answer "Unlock your phone!" or "Type adb stop-server", I will list you what I have tried so far.</p>
  
  <ul>
  <li>Restarted the ADB server</li>
  <li><strong>UNLOCKED</strong> my phone</li>
  <li>Restarted my phone</li>
  <li>Restarted Android Studio</li>
  <li>Restarted my laptop</li>
  <li>"Clean build" the project</li>
  <li>ADB devices does show my device(can browse it's files in the explorer)</li>
  <li><ul>
  <li>Turned on/off the "Instant Run" thing</li>
  </ul></li>
  </ul>
  
  <p>My code is the Hello World when creating a new project or activity, nothing changed(Not even the IDE(Fresh Install)). I would love it if someone would help me answer this question as for all the other answers have to do with an emulator(Which none of the answers worked).</p>