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

Unable to read AVD_setup.json. Check JSON file structure or file path. #21

Open
Xavbm opened this issue Mar 5, 2018 · 4 comments
Open

Comments

@Xavbm
Copy link

Xavbm commented Mar 5, 2018

Error : Unable to read AVD_setup.json. Check JSON file structure or file path.

I'm trying to use the plugin, but it seems that my path is always wrong.
I tried different paths and move the config file, but i'm always having the same error.

Exemple code
automated_test_emulator_run(
AVD_setup_path: "~/Projets/projectName/fastlane/AVD_configs/AVD_setup.json",
gradle_task: "connectedAndroidTest"
)

Here my config. json
{
"avd_list": [
{
"avd_name": "Test-Emulator-API23",
"create_avd_target": "android-23",
"create_avd_abi": "google_apis/x86",
"create_avd_hardware_config_filepath": "",
"create_avd_additional_options": "",

      "launch_avd_snapshot_filepath": "",
      "launch_avd_launch_binary_name": "emulator",
      "launch_avd_port": "",
      "launch_avd_additional_options": ""
    }
]

}

@FisherKK
Copy link
Collaborator

FisherKK commented Mar 5, 2018

Hello @Xavbm,

Are you sure that you didn't do typo in your path?
Like "Projets" instead of "Projects"? Try to navigate to it via cd form terminal like:

cd ~/Projets/projectName/fastlane/AVD_configs/

@Xavbm
Copy link
Author

Xavbm commented Mar 5, 2018

Thank you for your quick answer, but yeah i'm sure, projets is in french.
I tried to copy past from terminal and didnt work

@barchinsky
Copy link

@FisherKK , did I get it right that only absolute path to config file supported? So relative path like "./config/AVD_setup.json" will not be found. Under relative I mean relative to fastlane file.

@Sahara150
Copy link

@FisherKK Is @barchinsky correct? If this is still the case, please support using relative paths of where fastlane is running. This makes working with the plugin in a CI pretty horrible, cause you're not supposed to know much about the underlying file structure.

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