when i start eclipse and run android project, it opens a new emulator every time ,

前端 未结 3 958
后悔当初
后悔当初 2021-01-01 02:29

Eclipse Android Emulator takes average 7 minutes to launch an activity ,its quite a long time Once emulator is Set ,Other projects can be run in same emulator which takes l

相关标签:
3条回答
  • 2021-01-01 03:14

    Not sure if this is a solution, but I noticed that clearing the memory on the emulator helped me on a few occasions. Also, I had an issue where I didn't notice the console was stating that my emulator was running on a lower API that the app requested, so it opened the next best emulator instance.

    0 讨论(0)
  • 2021-01-01 03:16

    If you are running Eclipse with the ADT plug in what normally happens is (1) you run you project (2) it asks to to select an android device (3) if no device is available, e.g. a valid emulator, it will ask you to create one.

    If Eclipse is asking you to creat a new emulator every time it is likley beacuse either (1) you have not selected the option on the pop up window indicating that you would like to always run the project in a specific listed instance of your emulator (2) there really is no compatable emulator available.

    If an emulator is created but not being found (as I suspect is happeneing), you need to refresh your ADT plug in connectino to that emulator. You can do this from within eclipse by going to the devices view (window --> show view --> other --> android --> devices), selecting the downward facing triangle all the way on the right and choosing "reset adb". This will reboot the android device bridge, a.k.a. what connects eclipse to your emulator, and will allow it to recognize that instance again. You should be able to run your project on that emulator from then on.

    0 讨论(0)
  • 2021-01-01 03:18

    You can avoid starting emulator automatically by going to

    run --> run configuration --> target tab. Then select "Always prompt to pick device." Run the project after this and select a different emulator device.

    Here is a screenshot:

    enter image description here

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