Skip to content
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

add-jar doesn't work #1208

Closed
bauerj opened this issue Dec 25, 2017 · 0 comments
Closed

add-jar doesn't work #1208

bauerj opened this issue Dec 25, 2017 · 0 comments

Comments

@bauerj
Copy link
Contributor

bauerj commented Dec 25, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant