Error: Could not access the Package Manager. Is the system running? - At Android Studio

前端 未结 8 2204
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 14:49

I installed android studio and tried to run easy projects.

But I caught strange error message:

Waiting for device.
/usr/local/idea/android-studio/sdk         


        
8条回答
  •  无人及你
    2020-12-05 15:19

    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 , YOUR_FULL_APK_PATH is of any .apk file path in your system.

    Please update if this works fine.

提交回复
热议问题