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

FAILURE: Build failed with an exception. because of RuntimeError: ANDROID_SDK or ANDROID_HOME needs to be set in ubuntu OS #290

Open
prashant-byjus opened this issue Jul 9, 2021 · 1 comment

Comments

@prashant-byjus
Copy link

gs
2 actionable tasks: 2 executed
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/aepl/.gradle/caches/jars-8/a3758272ae8be602ec3794dd2a2d61d9/plugin-0.14.0.jar/android_screenshot_tests/pull_screenshots.py", line 705, in
File "/home/aepl/.gradle/caches/jars-8/a3758272ae8be602ec3794dd2a2d61d9/plugin-0.14.0.jar/android_screenshot_tests/pull_screenshots.py", line 625, in main
File "/home/aepl/.gradle/caches/jars-8/a3758272ae8be602ec3794dd2a2d61d9/plugin-0.14.0.jar/android_screenshot_tests/pull_screenshots.py", line 620, in setup_paths
File "/home/aepl/.gradle/caches/jars-8/a3758272ae8be602ec3794dd2a2d61d9/plugin-0.14.0.jar/android_screenshot_tests/common.py", line 35, in get_android_sdk
RuntimeError: ANDROID_SDK or ANDROID_HOME needs to be set

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':sample:pullDebugAndroidTestScreenshots'.

Process 'command 'python'' finished with non-zero exit value 1

@prashant-byjus prashant-byjus changed the title FAILURE: Build failed with an exception. because of RuntimeError: ANDROID_SDK or ANDROID_HOME needs to be set FAILURE: Build failed with an exception. because of RuntimeError: ANDROID_SDK or ANDROID_HOME needs to be set in ubuntu OS Jul 9, 2021
@BaloghTamas
Copy link
Contributor

This is not an issue with the library itself, but with your configuration. Should be closed.

You need to set ANDROID_SDK or ANDROID_HOME environment variable to point to the Android SDK location. More info here

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

2 participants