Skip to content

add-jar doesn't work #1208

@bauerj

Description

@bauerj

I'm trying to add classes from a jar file to the generated apk so I can use them with pyjnius.

In the buildozer spec file I added

android.add_jars = gui/kivy/tools/jars/*.jar

Buildozer seems to pass that correctly to pythonforandroid:

/usr/bin/python -m pythonforandroid.toolchain apk --debug --bootstrap=sdl2 --dist_name Electrum --name Electrum --version 3.0.3 --package org.electrum.electrum --android_api 19 --sdk 19 --minsdk 9 --private /home/bauerj/electrum/.buildozer/android/app --permission INTERNET --permission WRITE_EXTERNAL_STORAGE --permission READ_EXTERNAL_STORAGE --add-jar /home/bauerj/electrum/gui/kivy/jars/core-3.3.1.jar --presplash /home/bauerj/electrum/./icons/electrum_presplash.png --icon /home/bauerj/electrum/./icons/electrum_launcher.png --orientation portrait --window --intent-filters /home/bauerj/electrum/gui/kivy/tools/bitcoin_intent.xml --copy-libs --arch armeabi-v7a --color=always --storage-dir=/home/bauerj/electrum/.buildozer/android/platform/build

However, the generated apk file contains no classes from core-3.3.1.jar. Even if I pass a JPEG image to android.add_jars, pythonforandroid does not complain.

I'm using the current master (8829312) for python-for-android.
Spec file: buildozer.spec

Let me know if I can provide more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions