Apk Error Importing jar in Kivy App

88 views
Skip to first unread message

Simple Pleasures by Aswini

unread,
Sep 27, 2022, 8:13:38 AM9/27/22
to Kivy users support
imported jar file into my kivy app and perfectly working ,but i am getting error when trying to build the apk
In the BUILDOZER i added ,

# OUYA-ODK/libs/*.jar
android.add_jars = PythonJavaExample.jar
# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,jar

  
But i am getting error like below picture ,is anything need to add in that buildozer?
Any help


error pyjnius.png

Robert

unread,
Sep 27, 2022, 1:03:55 PM9/27/22
to Kivy users support
I assume the build error is further up the log file.
If you can't find it or don't understand it, post the full log here as a .txt file

(Screen shots are not valuable for looking at log files, or source code)

Amine Ben

unread,
Sep 27, 2022, 5:44:36 PM9/27/22
to kivy-...@googlegroups.com
!pip install deprecated
and in requirements add: deprecated

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/726d151b-8106-4286-b328-ac8dec99931en%40googlegroups.com.

Amine Ben

unread,
Sep 27, 2022, 5:45:20 PM9/27/22
to kivy-...@googlegroups.com
because jar isn't the probleme

Simple Pleasures by Aswini

unread,
Sep 28, 2022, 1:49:17 AM9/28/22
to Kivy users support
this is the full log
logerror.txt

Robert

unread,
Sep 28, 2022, 2:19:20 AM9/28/22
to Kivy users support
Gradle tells us this:

>  [DEBUG]:    ERROR:/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/myapp/src/main/libs/PythonJavaExample.jar: D8: com.android.tools.r8.internal.YI0: Unsupported class file version: 62


And sadly, read the last paragraph in this post from an earlier discussion of ours:

Amine Ben

unread,
Sep 28, 2022, 11:23:20 AM9/28/22
to kivy-...@googlegroups.com
send me buildozer .spec file to edit it for you

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

Simple Pleasures by Aswini

unread,
Sep 29, 2022, 2:45:01 AM9/29/22
to Kivy users support
thanku so much apk builded successfully
Reply all
Reply to author
Forward
0 new messages