-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
FIX: copy additional jar files into the correct libs directory #1693
Conversation
How did you get to test it to make sure it works? I'm getting an error during gradle build: |
I forked master and edited the file. It ran straight through and copied over the jar files to the correct directory and completed successfully. Without this change I get an error saying my jar files can't be found at ...src/main/libs So yeah works here. Give me some time and I can share logs with and without if you like? |
Oh thanks, well yes that's what I did, but I end up with the error described in #1563 (comment)
|
Log with this pr (src/main/libs) - successful Log without this change (default libs) - error |
Thanks @OptimusGREEN very helpful debug session log. python setup_testapp_python3.py apk --sdk-dir $ANDROID_SDK_HOME --ndk-dir $ANDROID_NDK_HOME --bootstrap sdl2 --requirements python3,kivy --add-jar ~/testapps/commons-compress-1.14.jar With rm -rf ~/.local/ ~/.gradle/ ~/.cache/ ~/.ccache/ Note that I may be deleting too much, but who cares in a Docker env 😄 |
Builds, but I get a runtime "Class not found". the jar:
Unzip the apk and I can see the jar contents at the root of the apk :
Test python is:
And logcat says the jar contents is not found (the symbols before "Traceback" are from .NativeInvocationHandler) :
The jnius java file is (of course ) in the apk at : Is this pilot error, or something else? |
This fixes the issue where additional jar files specified in the buildozer spec at
android.add_jars
aren't copied to the correct build directory resulting in a failed build attempt.