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) {
2727 boolean foundPython = false ;
2828
2929 for (String lib : getLibraries ()) {
30+ Log .v ("python" , "Loading library: " + lib );
3031 try {
3132 System .loadLibrary (lib );
3233 if (lib .startsWith ("python" )) {
@@ -36,10 +37,15 @@ public static void loadLibraries(File filesDir) {
3637 // If this is the last possible libpython
3738 // load, and it has failed, give a more
3839 // general error
40+ Log .v ("python" , "Library loading error: " + e .getMessage ());
3941 if (lib .startsWith ("python3.6" ) && !foundPython ) {
4042 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 ;
4148 }
42- continue ;
4349 }
4450 }
4551
You can’t perform that action at this time.
0 commit comments