Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kivy Apk build with buildozer error: # Java compiler (javac) not found, please install it

I'm trying to build an apk of my kivy project. I have installed buildozer in python 2.7 Using PyCharm, then I built the .spec, but when I tried to create the apk, I got these results: i have insatalled jdk7 and 8

  1. Using: buildozer Android debug

    #Check configuration tokens
    # Ensure build layout
    # Check configuration tokens
    # Preparing build
    # Check requirements for android
    # Java compiler (javac) not found, please install it.
    
  2. Using:  buildozer -v Android debug

    # Check configuration tokens
    # Ensure build layout
    # Check configuration tokens
    # Read available permissions from api-versions.xml
    # Preparing build
    # Check requirements for android
    # Run 'dpkg --version'
    # Cwd None
    /bin/sh: dpkg: comando non trovato
    # Search for Git (git)
    #  -> found at /usr/bin/git
    # Search for Cython (cython)
    #  -> found at /usr/bin/cython
    # Search for Java compiler (javac)
    # Java compiler (javac) not found, please install it.
    
  3. Using: buildozer Android debug deploy run

    # Check configuration tokens
    # Ensure build layout
    # Check configuration tokens
    # Preparing build
    # Check requirements for android
    # Java compiler (javac) not found, please install it.
    

How do I get this to work?

like image 319
Vilma De battista Avatar asked Nov 26 '15 17:11

Vilma De battista


People also ask

How do I use kivy Buildozer?

Packaging your application for the Kivy Launcher¶Go on Google Play Store and search for Kivy Launcher from kivy org. Click on Install. Select your phone… And you're done!

What is Buildozer spec file?

Buildozer is a tool that automates the entire build process. It downloads and sets up all the prerequisites for python-for-android, including the android SDK and NDK, then builds an apk that can be automatically pushed to the device.

Does Buildozer support python 3?

For Android, buildozer will automatically download and prepare the build dependencies. For more information, see Android-SDK-NDK-Information. Note that only Python 3 is supported.

What is kivy launcher?

The Kivy Launcher is an Android application that can run any Kivy app stored in the kivy folder on the SD Card.


1 Answers

You need to install Java Development Kit. If you are using Debian based system (Ubuntu, Linux mint, etc.) just type in terminal: sudo apt-get install openjdk-8-jdk. On windows you must visit Java website and download Java JDK manually.

To check if you have installed Java JDK, type in console javac -version, you should see message like this: javac 1.8.0_91

like image 107
trojek Avatar answered Sep 16 '22 16:09

trojek