-
Notifications
You must be signed in to change notification settings - Fork 506
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
sdkmanager is notinstalled #927
Comments
I got the same error message: turned out I had a partial/corrupted zip file at I made it work replacing the partial zip with a complete one and rhen reissuing the buildozer command.
|
Yes that could be it. Also before trying to reinstall I would advise you to remove crystax and use the Android ndk |
@AndreMiras how to reinstall ? crystax |
i also have the same error Check configuration tokensEnsure build layoutCheck configuration tokensRead available permissions from api-versions.xmlPreparing buildCheck requirements for androidRun 'dpkg --version'Cwd NoneDebian 'dpkg' package management program version 1.19.0.5 (amd64). Search for Git (git)-> found at /usr/bin/gitSearch for Cython (cython)-> found at /usr/local/bin/cythonSearch for Java compiler (javac)-> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javacSearch for Java keytool (keytool)-> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytoolInstall platformRun 'git config --get remote.origin.url'Cwd /home/pewpew/Desktop/myfirstapp/.buildozer/android/platform/python-for-androidhttps://github.com/kivy/python-for-android.git Run 'git branch -vv'Cwd /home/pewpew/Desktop/myfirstapp/.buildozer/android/platform/python-for-android
Run '/usr/bin/python -m pip install -q --user 'appdirs' 'colorama>=0.3.3' 'jinja2' 'six' 'enum34; python_version<"3.4"' 'sh>=1.10; sys_platform!="nt"' 'pep517' 'pytoml' 'virtualenv''Cwd NoneApache ANT found at /home/pewpew/.buildozer/android/platform/apache-ant-1.9.4Android SDK found at /home/pewpew/.buildozer/android/platform/android-sdkRecommended android's NDK version by p4a is: 17cAndroid NDK is missing, downloadingDownloading https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zipUnpacking Android NDKRun 'unzip -q /home/pewpew/.buildozer/android/platform/android-ndk-r17c-linux-x86_64.zip'Cwd /home/pewpew/.buildozer/android/platformRename /home/pewpew/.buildozer/android/platform/android-ndk-r17c to /home/pewpew/.buildozer/android/platform/android-ndk-r17cAndroid NDK installation done.Installing/updating SDK platform tools if necessaryCheck configuration tokenssdkmanager path "/home/pewpew/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager" does not exist, sdkmanager is notinstalled |
i also have the same error Check configuration tokensEnsure build layoutCheck configuration tokensRead available permissions from api-versions.xmlPreparing buildCheck requirements for androidRun 'dpkg --version'Cwd NoneDebian 'dpkg' package management program version 1.19.0.5 (amd64). Search for Git (git)-> found at /usr/bin/gitSearch for Cython (cython)-> found at /usr/local/bin/cythonSearch for Java compiler (javac)-> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javacSearch for Java keytool (keytool)-> found at /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/keytoolInstall platformRun 'git config --get remote.origin.url'Cwd /home/pewpew/Desktop/myfirstapp/.buildozer/android/platform/python-for-androidhttps://github.com/kivy/python-for-android.git Run 'git branch -vv'Cwd /home/pewpew/Desktop/myfirstapp/.buildozer/android/platform/python-for-android
Run '/usr/bin/python -m pip install -q --user 'appdirs' 'colorama>=0.3.3' 'jinja2' 'six' 'enum34; python_version<"3.4"' 'sh>=1.10; sys_platform!="nt"' 'pep517' 'pytoml' 'virtualenv''Cwd NoneApache ANT found at /home/pewpew/.buildozer/android/platform/apache-ant-1.9.4Android SDK found at /home/pewpew/.buildozer/android/platform/android-sdkRecommended android's NDK version by p4a is: 17cAndroid NDK is missing, downloadingDownloading https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zipUnpacking Android NDKRun 'unzip -q /home/pewpew/.buildozer/android/platform/android-ndk-r17c-linux-x86_64.zip'Cwd /home/pewpew/.buildozer/android/platformRename /home/pewpew/.buildozer/android/platform/android-ndk-r17c to /home/pewpew/.buildozer/android/platform/android-ndk-r17cAndroid NDK installation done.Installing/updating SDK platform tools if necessaryCheck configuration tokenssdkmanager path "/home/pewpew/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager" does not exist, sdkmanager is notinstalledasd |
ok |
Yes I would try all of the following:
Last please when you share logs, use the triple backticks, pastebin or whatever you prefer to make it readable. Otherwise you see it's sometimes bold and miss some info. You can edit your answer when you see it looks like this mess. |
cd to this directory /home/hamza/.buildozer/android/platform/android-sdk and 'ls', you will see the zip file, you just need to unzip it with |
O meu esta dando os mesmos problemas... |
as solved here https://stackoverflow.com/questions/59330223/sdkmanager-not-installed (but not fully explained) starting from the error: sdkmanager path "/home/phoenix/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager" does not exist, sdkmanager is notinstalledconsider this piece of path: .buildozer/android/platform/android-sdk sitting at your folder project (../your_app/buildozer.spec) cd .buildozer/android/platform/android-sdk then unzip file: pwd copy and paste pwd output to buildozer.spec line (no quotes needed): save buildozer.spec and then run buildozer android debug deploy run (or -v android release) |
Well of course.....you anyway need android studio installed..... the SDKMANAGER will look up for .android folder in home path...which comes with android studio you may need to install the latest SDK command line tool and you're good to go.... if you still have problems.....install from android studio not just the latest SDK command line tool but also additional things such as NDK ans SDK build tools to do so you open android studio activity panel on android >Tools-> SDK MANAGER-> ANDROID SDK->(tab) SDK tools and you thick "show package details" so you thick old versions of NDK, SDK (command line and buildtools) you click apply, you accept and wait for finishing then you're good to go enjoy |
Today I ran into this, I decided to manually unzip the downloaded sdk. |
Thanks a lot. By there will be two zip files there first one is not unzipable .we should unzip the second one only. |
@RianFC: Would it be possible to reopen this? I just hit this too and now all of our cats are crying and so am I. 😿 🙀 😭 This issue appears to be caused by interrupted downloads. Buildozer fails to notice that the downloaded zip file is corrupted. Ideally, Buildozer should notice this and just attempt to redownload the erroneous file(s). So, this is an open Buildozer issue. In my case, I can personally confirm that manually removing the offending subdirectories and trying again as advised by the highest upvoted StackOverflow answer on this topic solved this issue perfectly for me: # Manually remove both the
# "~/.buildozer/android/platform/android-sdk/" and
# "~/.buildozer/android/platform/android/" subdirectories.
$ mv ~/.buildozer/android/platform/android{,-sdk}/ /tmp
# Re-run Buildozer.
$ buildozer android debug That's it. Enjoy worky. App development is hard enough as it is, right? We can make this a bit easier for everyone out there in the trenches. |
can someone pls help me debug mine, having too many problems that are pissing me off right now Pls |
Versions
Description
sdkmanager path "/home/olixao/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager" does not exist, sdkmanager is notinstalled
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: