sdkmanager is notinstalled

911 views
Skip to first unread message

fatemeh bameri

unread,
Apr 14, 2019, 3:43:36 PM4/14/19
to Kivy users support
Hi every body, I'm running buildozer on ubuntu 18.04. I installed based on https://kivy.org/doc/stable/guide/packaging-android.html and was installed all dependencies correctly, but, when I run "buildozer android debug deploy run" I have a problem about sdkmanager is not installedthat I attached it, please help me.

The best regard.
sdk.JPG

Robert Flatt

unread,
Apr 14, 2019, 8:33:00 PM4/14/19
to Kivy users support
Just a guess:

what sdk version is used?

Use: sdk 28, ndk r17c

If this is what you are doing, ignore my guess.

On Sunday, April 14, 2019 at 9:43:36 AM UTC-10, fatemeh bameri wrote:
Hi every body, I'm running buildozer on ubuntu 18.04. I installed based on https://kivy.org/doc/stable/guide/packaging-android.html and was installed all dependencies correctly, but, when I run "buildozer android debug deploy run" I have a problem about sdkmanager is not installedthat I attached it, please help me.

The best regard.What

fatemeh bameri

unread,
Apr 15, 2019, 4:51:17 AM4/15/19
to kivy-...@googlegroups.com
Thanks so much. I did your advice and changed the versions, but it didn't work.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/ec60a393-bc79-4447-a8c2-463cab7588df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Taylor

unread,
Apr 15, 2019, 6:04:59 PM4/15/19
to Kivy users support
Could you delete the /home/apk/.buildozer folder and run buildozer again? Please post what goes wrong in this case.

fatemeh bameri

unread,
Apr 17, 2019, 2:34:51 AM4/17/19
to kivy-...@googlegroups.com
Yes, I delete and run again, it worked and downloaded SDK and NDK, but I have a new error:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
    at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
    at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
    at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
    at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
    at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
    ... 5 more
# Command failed: /home/apk/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager tools platform-tools
# ENVIRONMENT:
#     DBUS_STARTER_ADDRESS = 'unix:path=/run/user/1000/bus,guid=190418bf5584ec653fde4d575cb62989'
#     QT4_IM_MODULE = 'xim'
#     WINDOWPATH = '2'
#     XDG_CURRENT_DESKTOP = 'ubuntu:GNOME'
#     XDG_SESSION_TYPE = 'x11'
#     QT_IM_MODULE = 'xim'
#     LOGNAME = 'apk'
#     USER = 'apk'
#     PATH = '/home/apk/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/apk/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
#     XDG_VTNR = '2'
#     HOME = '/home/apk'
#     DISPLAY = ':0'
#     SSH_AGENT_PID = '1362'
#     LANG = 'en_US.UTF-8'
#     MANAGERPID = '1238'
#     SHELL = '/bin/bash'
#     XAUTHORITY = '/run/user/1000/gdm/Xauthority'
#     JOURNAL_STREAM = '9:44113'
#     SESSION_MANAGER = 'local/apk-virtual-machine:@/tmp/.ICE-unix/1267,unix/apk-virtual-machine:/tmp/.ICE-unix/1267'
#     XDG_DATA_DIRS = '/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop'
#     QT_ACCESSIBILITY = '1'
#     GNOME_DESKTOP_SESSION_ID = 'this-is-deprecated'
#     CLUTTER_IM_MODULE = 'xim'
#     TEXTDOMAIN = 'im-config'
#     XMODIFIERS = '@im=ibus'
#     GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
#     INVOCATION_ID = '6a1dff3f2f4d45b998aa379ab89499bc'
#     USERNAME = 'apk'
#     XDG_SESSION_DESKTOP = 'ubuntu'
#     XDG_RUNTIME_DIR = '/run/user/1000'
#     SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
#     TERM = 'xterm-256color'
#     VTE_VERSION = '5202'
#     GDMSESSION = 'ubuntu'
#     IM_CONFIG_PHASE = '2'
#     TEXTDOMAINDIR = '/usr/share/locale/'
#     GNOME_SHELL_SESSION_MODE = 'ubuntu'
#     XDG_CONFIG_DIRS = '/etc/xdg/xdg-ubuntu:/etc/xdg'
#     DBUS_STARTER_BUS_TYPE = 'session'
#     LESSOPEN = '| /usr/bin/lesspipe %s'
#     XDG_SESSION_ID = '2'
#     DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus,guid=190418bf5584ec653fde4d575cb62989'
#     _ = '/usr/local/bin/buildozer'
#     GNOME_TERMINAL_SERVICE = ':1.71'
#     GTK_IM_MODULE = 'ibus'
#     DESKTOP_SESSION = 'ubuntu'
#     LESSCLOSE = '/usr/bin/lesspipe %s %s'
#     GTK_MODULES = 'gail:atk-bridge'
#     XDG_SEAT = 'seat0'
#     SHLVL = '1'
#     PWD = '/home/apk/Desktop/apk6'
#     COLORTERM = 'truecolor'
#     XDG_MENU_PREFIX = 'gnome-'
#     LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
#     GNOME_TERMINAL_SCREEN = '/org/gnome/Terminal/screen/59d55e38_1b68_491f_95be_786e35eca864'
#
# 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
please help me.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.

Robert Flatt

unread,
Apr 17, 2019, 2:42:56 AM4/17/19
to Kivy users support
 Using Java 11 ?  Uninstall Java 11 (required), install Java 8
if not ignore this post

fatemeh bameri

unread,
Apr 19, 2019, 1:00:01 AM4/19/19
to kivy-...@googlegroups.com
Thanks a lot, my java version was 10, then I changed to version 8. So it worked and built apk, but my apk file does not work my phone. my android version is 4.4.4. I attached my error. Please help me to run apk on my phone correctly.

many thanks

On Wed, Apr 17, 2019 at 11:13 AM Robert Flatt <planckp...@gmail.com> wrote:
 Using Java 11 ?  Uninstall Java 11 (required), install Java 8
if not ignore this post

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
photo_2019-04-19_09-28-42.jpg

Robert Flatt

unread,
Apr 19, 2019, 1:35:22 PM4/19/19
to Kivy users support
I don't know if this is the cause of the problem, but
Google tells me 4.4.4 uses API level 19 or 20
If you do things the same way as me (!) for the build min api is 21, which might account for the message (?)

You could try setting min api to 19, ..... if you get a "no valid dependency graph" message during build then you are going to need different ndk (and sdk?) versions - no experience of what works.

On Thursday, April 18, 2019 at 7:00:01 PM UTC-10, fatemeh bameri wrote:
Thanks a lot, my java version was 10, then I changed to version 8. So it worked and built apk, but my apk file does not work my phone. my android version is 4.4.4. I attached my error. Please help me to run apk on my phone correctly.

many thanks

On Wed, Apr 17, 2019 at 11:13 AM Robert Flatt <planckp...@gmail.com> wrote:
 Using Java 11 ?  Uninstall Java 11 (required), install Java 8
if not ignore this post

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.

Vishesh Jain

unread,
Jan 24, 2020, 8:31:03 AM1/24/20
to Kivy users support
error still shows, is there anyway we can use jave ver 11 and do that thanks a lot.

Robert Flatt

unread,
Jan 24, 2020, 10:02:24 PM1/24/20
to Kivy users support

jdk 8 is required, jdk 11 is not a substitute for jdk 8 in this case.

Vishesh Jain

unread,
Feb 10, 2020, 4:38:46 AM2/10/20
to Kivy users support

I am getting the exactly same issue, did you get any solution

Robert Flatt

unread,
Feb 10, 2020, 1:34:11 PM2/10/20
to Kivy users support
Did you try Alexander's advice above? delete ~/.buildozer  and run Buildozer again

And if you see a Google license agreement request you must type y  in order for the sdkmanager to completely install.

Darshil Patel

unread,
Jun 20, 2020, 11:54:16 AM6/20/20
to Kivy users support
i am using debian buster in windows wsl2, i dont have /home/apk/.buildozer, could you please help me with what to delete

Robert Flatt

unread,
Jun 20, 2020, 1:03:17 PM6/20/20
to Kivy users support
The account name is   apk   ?
Then there is nothing to delete.

Robert Flatt

unread,
Jun 20, 2020, 5:52:42 PM6/20/20
to Kivy users support
From: Darshil Patel <>
Date: Sat, Jun 20, 2020, 5:54 AM
Subject: [kivy-users] Re: sdkmanager is notinstalled
To: Kivy users support <>


i am using debian buster in windows wsl2, i dont have /home/apk/.buildozer, could you please help me with what to delete

The name of directory does not change with the Linux flavor.
It is always and only    ~/.buildozer
This is what to delete.
Reply all
Reply to author
Forward
0 new messages