Android Emulator won't run application started from eclipse

前端 未结 11 2044
甜味超标
甜味超标 2020-11-28 06:42

I have followed the \"Hello World\" example from Google\'s Android developer\'s guide. When I try to run the application in the SDK emulator, nothing happens. The emulator s

相关标签:
11条回答
  • 2020-11-28 07:09

    Actually, if you are using Windows, the problem might be that the User Account Control in your Windows is preventing Eclipse to load the apk in the emulator (Eclipse doesn't have right to do so).

    To turn off the User Account Control, go to the Control Panel, click User Accounts and Family Safety, and then click User Accounts. Once there, click the option 'Turn User Account Control on or off'.

    0 讨论(0)
  • 2020-11-28 07:12

    Same problem. Killing adb from task manager didn't help. Also tried restarting the AVD using android create avd --target 2 --name my_avd --force, no good. Tried the different launch method in Eclipse, nada.

    What eventually helped is: I started (from the start menu, not command line) the Android SDK Tools > SDK Manager, found the my_avd under virtual devices, and simply clicked the Start... button. That did it - the emulator started, I ran from Eclipse, and it immediately showed the app on the emulator.

    0 讨论(0)
  • 2020-11-28 07:12

    The Android emulator takes approximately 1 to 2 mins to load. Check the console tab in the eclipse IDE for evaluating the progress of loading the emulator and installing the application in the emulator.

    0 讨论(0)
  • 2020-11-28 07:18

    I used to face this problem a lot. There is workaround for this,

    End the "adb.exe" process from the Task Manager and try again.

    It should work. and instead of running from eclipse i use following batch files in my project directory to install and uninstall the apk. Those work great.

    Install.bat

    cd bin
    adb install *.apk
    

    Uninstall.bat

    adb uninstall this.is.package.name
    
    0 讨论(0)
  • 2020-11-28 07:18

    STEPS TO FOLLOW:

    1. Go to Command Prompt
    2. type adb kill-server
    3. enter

    Now it should work fine

    0 讨论(0)
  • 2020-11-28 07:19

    Depending on your computer it can takes several minutes to load the emulator and the app. Open Logcat view to see the progress of loading.

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