webmynd/build-tools — Issue #39: error installing Android SDK
Author: goodgravy
Created: 2012-01-17 09:47:20+00:00
State: open

Python 2.7.2

"I've been testing whether 'forge run android' can install the SDK itself (when it doesn't already exist), and getting the following error (I've added a -v flag for verbose output)."

No Android SDK found, would you like to:

(1) Attempt to download and install the SDK automatically to /Applications/android-sdk-macosx, or,
(2) Install the SDK yourself and rerun this command with the --sdk option to specify its location.

Please enter 1 or 2: 1
[ INFO] Downloading Android SDK (about 30MB, may take some time)
[ INFO] Download complete, extracting SDK
[ DEBUG] unzip output
[ DEBUG] Archive: sdk.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of sdk.zip or
sdk.zip.zip, and cannot find sdk.zip.ZIP, period.

[ INFO] Updating SDK and downloading required Android platform (about 90MB, may take some time)
[ ERROR] [Errno 2] No such file or directory
[ ERROR] Automatic SDK download failed, please install manually and specify with the --sdk flag while running run_android(('/Users/rjm/Downloads/demo/development', None, None), {})
[ DEBUG] UNCAUGHT EXCEPTION:
Traceback (most recent call last):
File "/Users/rjm/Downloads/forge-tools/forge/main.py", line 71, in decorated_with_handler
function(*args, **kwargs)
File "/Users/rjm/Downloads/forge-tools/forge/main.py", line 178, in run
device=args.device,
File ".template/generate_dynamic/customer_goals.py", line 43, in run_app
build_to_run.run()
File ".template/generate_dynamic/build.py", line 119, in run
self._run_task(func_name, args, kw)
File ".template/generate_dynamic/build.py", line 74, in _run_task
self.tasks[func_name](self, *args, **kw)
File ".template/generate_dynamic/android_tasks.py", line 386, in run_android
sdk = _check_for_sdk(sdk, interactive=interactive)
File ".template/generate_dynamic/android_tasks.py", line 187, in _check_for_sdk
_install_sdk_automatically()
File ".template/generate_dynamic/android_tasks.py", line 96, in _install_sdk_automatically
raise CouldNotLocate("Automatic SDK download failed, please install manually and specify with the --sdk flag")
CouldNotLocate: Automatic SDK download failed, please install manually and specify with the --sdk flag
[ ERROR] Something went wrong that we didn't expect:
[ ERROR] Automatic SDK download failed, please install manually and specify with the --sdk flag
[ ERROR] Please contact support@trigger.io