Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVD is not starting #19

Open
philipesteiff opened this issue Jan 26, 2018 · 3 comments
Open

AVD is not starting #19

philipesteiff opened this issue Jan 26, 2018 · 3 comments

Comments

@philipesteiff
Copy link

Hello,

For any reason my emulator is not starting.

My config.json:

{
  "avd_list": [
    {

      "avd_name": "Test-Emulator-API23-Nexus-5-1",

      "create_avd_package": "system-images;android-23;google_apis;x86_64",
      "create_avd_device": "Nexus 5X",
      "create_avd_tag": "google_apis",
      "create_avd_abi": "x86_64",
      "create_avd_additional_options": "",
      "create_avd_hardware_config_filepath": "~/.android/avd/Test-Emulator-API23-Nexus-5-1.ini",

      "launch_avd_port": "",
      "launch_avd_snapshot_filepath": "~/.android/avd/Test-Emulator-API23-Nexus-5-1.avd/cache.img",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_additional_options": "-gpu on"

    }
  ]
}

I tried to start the emulator directly using the plugin command:

Any suggestion?

@sparkleci
Copy link

I'm having the same problem. Do you know how to handle it?

@piterwilson
Copy link

For anyone having this issue, we figured it out one solution.

After this failure, we simply quit the script. Then we went and looked into the AVD Manager and payed close attention to the settings on the newly created AVD which was still in the list. That's how we realized that the emulator created only had 16MB memory heap size, while if we looked at the other emulators, we could see they had more normal values like 256MB etc ...

So, the solution was to go into the folder where the emulators are stored (CTR+CLICK / Show on Disk) and we copied the config.ini file there and used that as the parameter in create_avd_hardware_config_filepath

After that the emulator booted and things are progressing. We are still scratching our heads trying to figure out how to obtain a .img snapshot to avoid going trough the whole boot up each time. The folder where the snapshot should be doesn't have a .img file but instead is a directory with a bunch of .ini,.pb and .bin files.

Anyway i hope that helps.

@RithvikSharma
Copy link

Any update on the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants