Open ir2pid opened 6 years ago
Hello. I don't get what EM1
device is.
Please navigate to your sdk_home
location then to directory tools/bin
and use avdmanager
in terminal to read available devices that can be used in create_avd_device
field:
$ ./avdmanager list device
I would also recommend creating your AVD via Android Studio first with config you wish to have. Then inspect it config.ini
in ~/.android/avd/<your_avd_name>
directory and see what value does device
field has. Then use it in script!
Write if you have any more problems :)
hey, copying the .ini and cache.img file makes it work now thanks!
another thing, I start 3 emulators but the screenshots work on one, rest are idle.
attaching my json:
{
"avd_list": [
{
"avd_name": "Pixel_XL_API_24",
"create_avd_package": "system-images;android-24;google_apis;x86",
"create_avd_device": "pixel_xl",
"create_avd_tag": "google_apis",
"create_avd_abi": "x86",
"create_avd_additional_options": "",
"create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/pixel_xl.ini",
"launch_avd_port": "",
"launch_avd_snapshot_filepath": "/Users/sdutta/xx/fastlane/cache.img",
"launch_avd_launch_binary_name": "emulator",
"launch_avd_additional_options": "-gpu on"
},
{
"avd_name": "Nexus_7_API_24",
"create_avd_package": "system-images;android-24;google_apis;x86",
"create_avd_device": "Nexus 7 2013",
"create_avd_tag": "google_apis",
"create_avd_abi": "x86",
"create_avd_additional_options": "",
"create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/nexus7.ini",
"launch_avd_port": "",
"launch_avd_snapshot_filepath": "/Users/sdutta/xx/android/fastlane/cache.img",
"launch_avd_launch_binary_name": "emulator",
"launch_avd_additional_options": "-gpu on"
},
{
"avd_name": "Nexus_10_API_24",
"create_avd_package": "system-images;android-24;google_apis;x86",
"create_avd_device": "Nexus 10",
"create_avd_tag": "google_apis",
"create_avd_abi": "x86",
"create_avd_additional_options": "",
"create_avd_hardware_config_filepath": "/Users/xx/android/fastlane/nexus10.ini",
"launch_avd_port": "",
"launch_avd_snapshot_filepath": "/Users/xx/android/fastlane/cache.img",
"launch_avd_launch_binary_name": "emulator",
"launch_avd_additional_options": "-gpu on"
}
]
}
my lane:
desc "Runs tests with AVD setup according to JSON file config with usage of other lane."
lane :fastscreen do
automated_test_emulator_run(
AVD_recreate_new:false,
AVD_clean_after:false,
AVD_setup_path: "/Users/sdutta/Workspace/mobile/skoobe-app/platform/android/fastlane/AVD_setup.json",
shell_task:"fastlane screenshots"
)
end
can you help me with running screenshots on all 3
my avd config file:
I get error: