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

前端 未结 8 2186
爱一瞬间的悲伤
爱一瞬间的悲伤 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:02

    I had this issue, but I found that simply killing the emulator and restarting it worked. There seems to be some sort of race condition where the emulator has not initialized before Android Studio tries to launch the apk and so you get the package error.

    0 讨论(0)
  • 2020-12-05 15:03

    The most common cause of this error is simple: You have to manually unlock your Android Virtual Device by swiping the “lock” icon on the screen. Security measures prevent the emulator from letting you connect the debugger before doing this.

    The problem is resolved:

    In Android Studio

    1. Start run/debug
    2. if you see the message
    3. Do not closed the AVD, just click on run/debug again, the Application will be running when you unlock the application.
    0 讨论(0)
  • 2020-12-05 15:05

    The same happened to me right now. I don't know if there is another but for me the following worked:

    • Opened AVD (Android Virtual Device) Manager
    • Started virtual device
    • Hit the Run button again (that one at status bar)

    Explanation: The problem happened because of timeout. Once device had started, the Android Studio could comunicate with him. (v 0.5.3)

    0 讨论(0)
  • 2020-12-05 15:11

    This Is Worked for me

    1)Close Solution.

    2)Close Emulator.

    3)Run Emulator and Wait till it launch completely and shows Home Screen.

    4)After that only Open Solution And Clean,Rebuild and Try to deploy Application.

    0 讨论(0)
  • 2020-12-05 15:13

    In my case this error was caused by SELinux. I got to set SELinux to permissive.

    adb shell su 0 setenforce 0
    
    0 讨论(0)
  • 2020-12-05 15:15

    I had this too, and using this config worked for me :

    Device: Nexus One
    Target: Android 4.2.2 -api level 17
    CPU/ABI: ARM (armeabi-v7a)
    Keyboard: Hardware keyboard present

    Memory Options:

    RAM: 512
    VM Heap: 192
    Iternal Storage: 200

    SD Card:

    Size:200

    0 讨论(0)
提交回复
热议问题