Skip to content

Commit d974ba3

Browse files
committed
avoid OpenSSL load fail.
1 parent b0a51b0 commit d974ba3

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • pythonforandroid/bootstraps/webview/build/src/org/kivy/android

pythonforandroid/bootstraps/webview/build/src/org/kivy/android/PythonUtil.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,19 @@ public static void loadLibraries(File filesDir) {
3737
}
3838
}
3939

40+
try {
41+
System.loadLibrary("ffi");
42+
}catch(UnsatisfiedLinkError e) {
43+
}
44+
45+
4046
try {
4147
System.load(filesDirPath + "/lib/python2.7/lib-dynload/_io.so");
4248
System.load(filesDirPath + "/lib/python2.7/lib-dynload/unicodedata.so");
4349
} catch(UnsatisfiedLinkError e) {
4450
Log.v(TAG, "Failed to load _io.so or unicodedata.so...but that's okay.");
4551
}
46-
52+
4753
try {
4854
// System.loadLibrary("ctypes");
4955
System.load(filesDirPath + "/lib/python2.7/lib-dynload/_ctypes.so");

0 commit comments

Comments
 (0)