FIX: copy additional jar files into the correct libs directory#1693
FIX: copy additional jar files into the correct libs directory#1693AndreMiras merged 1 commit intokivy:masterfrom OptimusGREEN:master
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.jarWith 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_jarsaren't copied to the correct build directory resulting in a failed build attempt.