File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public static void loadLibraries(File filesDir) {
27
27
boolean foundPython = false ;
28
28
29
29
for (String lib : getLibraries ()) {
30
+ Log .v ("python" , "Loading library: " + lib );
30
31
try {
31
32
System .loadLibrary (lib );
32
33
if (lib .startsWith ("python" )) {
@@ -36,10 +37,15 @@ public static void loadLibraries(File filesDir) {
36
37
// If this is the last possible libpython
37
38
// load, and it has failed, give a more
38
39
// general error
40
+ Log .v ("python" , "Library loading error: " + e .getMessage ());
39
41
if (lib .startsWith ("python3.6" ) && !foundPython ) {
40
42
throw new java .lang .RuntimeException ("Could not load any libpythonXXX.so" );
43
+ } else if (lib .startsWith ("python" )) {
44
+ continue ;
45
+ } else {
46
+ Log .v ("python" , "An UnsatisfiedLinkError occurred loading " + lib );
47
+ throw e ;
41
48
}
42
- continue ;
43
49
}
44
50
}
45
51
You can’t perform that action at this time.
0 commit comments