buildozer for Android choked on "No Java runtime present, questing install."

188 views
Skip to first unread message

bearnun

unread,
Mar 12, 2016, 5:37:54 AM3/12/16
to Kivy users support
Hey again,

So, I'm trying to get my app build for Android, and everything was going well until my internet cut out partway through the build.  Now, when I build I get the error below.  Just wondering if a cut-out partway through the first build (buildozer -v android debug) would cause the below output.  If not, then I will keep banging my head. :) Thanks.


# Check configuration tokens
# Ensure build layout
# Create directory .buildozer/android/platform
# Check configuration tokens
# Read available permissions from api-versions.xml
# Preparing build
# Check requirements for android
# Search for Git (git)
#  -> found at /usr/local/Cellar/git/2.7.0/bin/git
# Search for Cython (cython)
#  -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/javac
# Search for Java keytool (keytool)
#  -> found at /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/keytool
# Install platform
# Run 'git clone -b old_toolchain --single-branch https://github.com/kivy/python-for-android.git python-for-android'
# Cwd /Users/bearnun/Code/mingyu/mingyu/.buildozer/android/platform
Cloning into 'python-for-android'...
# Apache ANT found at /Users/bearnun/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /Users/bearnun/.buildozer/android/platform/android-sdk-20
# Android NDK found at /Users/bearnun/.buildozer/android/platform/android-ndk-r9c
# Run '/Users/bearnun/.buildozer/android/platform/android-sdk-20/tools/android list sdk -u -e'
# Cwd /Users/bearnun/.buildozer/android/platform
No Java runtime present, requesting install.
No Java runtime present, requesting install.
No Java runtime present, requesting install.
# Command failed: /Users/bearnun/.buildozer/android/platform/android-sdk-20/tools/android list sdk -u -e
#
# 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

bearnun

unread,
Mar 12, 2016, 11:02:45 PM3/12/16
to Kivy users support
I'm pretty convinced that this was caused by the build cutting out halfway through when I ran "buildozer -v android run" for the first time, which subsequently somehow clobbered the symlinks for Java.  The solution (workaround?) is to run these two commands in the terminal (Mac OS X):

sudo rm /usr/bin/java
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java /usr/bin


If you can't run those commands then follow these steps.


Reply all
Reply to author
Forward
0 new messages