We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed96238 commit 24d451fCopy full SHA for 24d451f
libs/metadata_generators/android_metadata_generator.py
@@ -1,8 +1,16 @@
1
import os
2
3
+# Set the classpath to include the android.jar file
4
+# This approach will allow Pyjnius to find the necessary Java classes when
5
+# interacting with the Android SDK from within your Python script
6
+os.environ[
7
+ "CLASSPATH"
8
+] = "/Users/owencarey/Library/Android/sdk/platforms/android-33/android.jar"
9
+
10
+# Use OpenJDK 8
11
os.environ[
12
"JAVA_HOME"
-] = "/Library/Java/JavaVirtualMachines/jdk-12.0.2.jdk/Contents/Home"
13
+] = "/usr/local/opt/openjdk@8/libexec/openjdk.jdk/Contents/Home"
14
15
from jnius import autoclass
16
import json
0 commit comments