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 after update of SDK #1070

Closed
konbernu opened this issue Jun 30, 2017 · 4 comments
Closed

Error after update of SDK #1070

konbernu opened this issue Jun 30, 2017 · 4 comments

Comments

@konbernu
Copy link

konbernu commented Jun 30, 2017

I updated my SDK and since then I have the following Error:

[INFO]: This python-for-android revamp is an experimental alpha release!
[INFO]: It should work (mostly), but you may experience missing features or bugs.
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI
Traceback (most recent call last):
File "/usr/local/bin/p4a", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 754, in main
ToolchainCL()
File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 343, in init
getattr(self, command_method_name)(unknown)
File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/toolchain.py", line 87, in wrapper_func
user_ndk_ver=self.ndk_version)
File "/usr/local/lib/python2.7/dist-packages/pythonforandroid/build.py", line 227, in prepare_build_environment
targets = android('list').stdout.decode('utf-8').split('\n')
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1223, in call
return RunningCommand(cmd, call_args, stdin, stdout, stderr)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 628, in init
self.wait()
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 646, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 667, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /home/developer/Android/Sdk/tools/android list

STDOUT:


The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


Invalid or unsupported command "list"

Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk

STDERR:

@misl6
Copy link
Member

misl6 commented Jun 30, 2017

See : kivy/buildozer#519

@inclement
Copy link
Member

This should be fixed by #1042 , but it isn't yet ready to merge.

(This android issue is actually easier to deal with and doesn't need such a big PR, I might merge a fix for it separately).

@inclement
Copy link
Member

It looks like this should be fixed in the master branch. If you still have problems, let me know and I'll reopen the issue.

@ZhangKuixun
Copy link

How to repair it? Why don't I understand? @konbernu

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