@@ -145,19 +145,28 @@ the build (e.g. if buildozer was previously used). Removing this
145145directory should fix the problem, and is desirable anyway since you
146146don't want it in the APK.
147147
148- Exception in thread "main" java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
149- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
148+ Errors related to Java version
149+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150150
151+ The errors listed below are related to Java version mismatch, it should be
152+ fixed by installing Java 8.
151153This occurs due to a java version mismatch, it should be fixed by
152- installing Java 8 (e.g. the openjdk-8-jdk package on Ubuntu).
154+ installing Java 8 (e.g. the :code: ` openjdk-8-jdk ` package on Ubuntu).
153155
154- java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
155- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
156+ - :code: `java.lang.UnsupportedClassVersionError: com/android/dx/command/Main `
157+ - :code: `java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder `
158+ - :code: `java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema `
156159
157- Also make sure you're running Java 8, on OS X::
160+ On Ubuntu fix it my making sure only the :code: `openjdk-8-jdk ` package is installed::
161+
162+ apt remove --purge openjdk-*-jdk
163+ apt install openjdk-8-jdk
164+
165+ In the similar fashion for macOS you need to install the :code: `java8 ` package::
158166
159167 brew cask install java8
160168
169+
161170JNI DETECTED ERROR IN APPLICATION: static jfieldID 0x0000000 not valid for class java.lang.Class<org.renpy.android.PythonActivity>
162171~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163172
0 commit comments