“Error could not access the package manager. Is the system running android studio?”

“Error could not access the package manager. Is the system running android studio?”

If you are getting this with Android Studio, you need to unlock your simulator (assuming it is running) by sliding the lock on the lock screen like it was a real phone.

Android Studio can’t connect to your simulator if it is in the locked state.