@@ -145,19 +145,28 @@ the build (e.g. if buildozer was previously used). Removing this
145
145
directory should fix the problem, and is desirable anyway since you
146
146
don't want it in the APK.
147
147
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
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150
150
151
+ The errors listed below are related to Java version mismatch, it should be
152
+ fixed by installing Java 8.
151
153
This 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).
153
155
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 `
156
159
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::
158
166
159
167
brew cask install java8
160
168
169
+
161
170
JNI DETECTED ERROR IN APPLICATION: static jfieldID 0x0000000 not valid for class java.lang.Class<org.renpy.android.PythonActivity>
162
171
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163
172
0 commit comments