could not access the package manager. is the system running while installing android application
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.
Error: Could not access the Package Manager. Is the system running? - At Android Studio
First make sure you are running Android Studio version above 0.3.2 because there was some issue reported regarding the same in AS 0.3.2 . If it is not you can update it from Help >Check for update
.
If you are already running AS above 0.3.2 :
Seems like issue is with your emulator not with Android Studio. It may happen that you are trying to install application before even the emulator started properly.
Wait till the home screen appears in the emulator before trying to install any application.
Also try to install any apk in Emulator from command line
Steps to install
- Go to $Android_SDK_DIR\platform-tools, right click there keeping
shift key pressed and Chose "Open Command Window here". - Run command
adb devices
to make sure yout emulator is running
properly. It will show all your running emulators. - Now if emulators are showing properly, type the command
adb install
, YOUR_FULL_APK_PATH is of any .apk file path in
YOUR_FULL_APK_PATH
your system.
Please update if this works fine.
Travis CI Error: Could not access package manager. Is the system running?
Instead of
- adb wait-for-device
use
- android-wait-for-emulator
The android-wait-for-emulator
script not only waits for the device but also for the boot animation too complete.
Related Topics
Android Tabwidget Detect Click on Current Tab
Android Kitkat 4.4 Hangouts Cannot Handle Sending Sms Intent
Httpentity Is Deprecated on Android Now, What's the Alternative
How to Disable All Views Inside the Layout
Fragment Replacing in Recyclerview Item
Check If User Is Authenticated for the First Time in Firebase Google Authentication in Android
How to Merge Dex - Android Studio 3.0
Why Getapplicationcontext() in Constructor of Activity Throws Null Pointer Exception
Put Buttons at Bottom of Screen with Linearlayout
Detect If an App Is Installed from Play Store
How to Execute Something Just Once Per Application Start
How to Execute a Method by Clicking a Notification
Android Studio Build Fails with "Task '' Not Found in Root Project 'Myproject'."
Activate an Application When a Power Button Is Clicked
Difference Between Finish() and System.Exit(0)
Is Proguard.Cfg Needed for Library Projects
Java.Lang.Noclassdeffounderror: Com.Google.Android.Gms.R$Styleable in Android