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

Error: Flag '-a' is not valid for 'list sdk'. #241

Closed
veeYceeY opened this issue Oct 23, 2015 · 0 comments
Closed

Error: Flag '-a' is not valid for 'list sdk'. #241

veeYceeY opened this issue Oct 23, 2015 · 0 comments

Comments

@veeYceeY
Copy link

At log level 1 buildozer logged error as

Command failed: /home/linukshetra/.buildozer/android/platform/android-sdk-15/tools/android list sdk -u -e -a

Buildozer failed to execute the last command

If the error is not obvious, please raise the log_level to 2

and retry the latest command.

In case of a bug report, please add a full log with log_level = 2

increased log level to 2 ,

Check configuration tokens

Ensure build layout

Check configuration tokens

Preparing build

Check requirements for android

Run 'dpkg --version'

Cwd None

Debian `dpkg' package management program version 1.17.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.

Search for Git (git)

-> found at /usr/bin/git

Search for Cython (cython)

-> found at /usr/local/bin/cython

Search for Java compiler (javac)

-> found at /usr/lib/jvm/java-7-openjdk-amd64/bin/javac

Search for Java keytool (keytool)

-> found at /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/keytool

Install platform

Apache ANT found at /home/linukshetra/.buildozer/android/platform/apache-ant-1.9.4

Android SDK found at /home/linukshetra/.buildozer/android/platform/android-sdk-15

Android NDK found at /home/linukshetra/.buildozer/android/platform/android-ndk-r9c

Run '/home/linukshetra/.buildozer/android/platform/android-sdk-15/tools/android list sdk -u -e'

Cwd /home/linukshetra/.buildozer/android/platform

Refresh Sources:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Validate XML: https://dl-ssl.google.com/android/repository/repository-5.xml
Parse XML: https://dl-ssl.google.com/android/repository/repository-5.xml
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
Refresh Sources:
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
Refresh Sources:
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml

Packages available for installation or update: 2

id: 1 or "tools"
Type: Tool

Desc: Android SDK Tools, revision 22

id: 2 or "platform-tools"
Type: PlatformTool
Desc: Android SDK Platform-tools, revision 19
Refresh Sources:
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml
Validate XML
Parse XML
Fetched Add-ons List successfully
Refresh Sources
Fetching URL: https://dl-ssl.google.com/android/repository/repository-5.xml
Validate XML: https://dl-ssl.google.com/android/repository/repository-5.xml
Parse XML: https://dl-ssl.google.com/android/repository/repository-5.xml
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
Refresh Sources:
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml
Refresh Sources:
Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml
Validate XML: https://dl-ssl.google.com/android/repository/addon.xml

Packages available for installation or update: 2

id: 1 or "tools"
Type: Tool

Desc: Android SDK Tools, revision 22

id: 2 or "platform-tools"
Type: PlatformTool
Desc: Android SDK Platform-tools, revision 19

Run (expect) '/home/linukshetra/.buildozer/android/platform/android-sdk-15/tools/android update sdk -u -a -t tools,platform-tools'

Cwd None

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Error: Flag '-a' is not valid for 'update sdk'.

   Usage:
   android [global options] update sdk [action options]
   Global options:

-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
-s --silent : Silent mode, shows errors only.

                 Action "update sdk":

Updates the SDK by suggesting new platforms to install if available.
Options:
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.
-f --force : Forces replacement of a package or its parts, even if
something has been modified.
-u --no-ui : Updates from command-line (does not display the GUI)
-o --obsolete : Installs obsolete packages.
-t --filter : A filter that limits the update to the specified types of
packages in the form of a comma-separated list of
[platform, system-image, tool, platform-tool, doc, sample,
extra, source]. This also accepts the identifiers returned
by 'list sdk --extended'.
-n --dry-mode : Simulates the update but does not download or install
anything.

build-tools folder not found /home/linukshetra/.buildozer/android/platform/android-sdk-15/build-tools

Run '/home/linukshetra/.buildozer/android/platform/android-sdk-15/tools/android list sdk -u -e -a'

Cwd /home/linukshetra/.buildozer/android/platform

Error: Flag '-a' is not valid for 'list sdk'.

   Usage:
   android [global options] list sdk [action options]
   Global options:

-h --help : Help on a specific command.
-v --verbose : Verbose mode, shows errors, warnings and all messages.
-s --silent : Silent mode, shows errors only.

               Action "list sdk":

Lists remote SDK repository.
Options:
-o --obsolete : Lists all packages (including obsolete and installed ones)
--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.
-e --extended : Displays extended details on each package
-u --no-ui : Displays list result on console (no GUI) [Default: true]

Command failed: /home/linukshetra/.buildozer/android/platform/android-sdk-15/tools/android list sdk -u -e -a

Buildozer failed to execute the last command

The error might be hidden in the log above this error

Please read the full log, and search for it before

raising an issue with buildozer itself.

In case of a bug report, please add a full log with log_level = 2

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

1 participant