File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
pythonforandroid/bootstraps/sdl2/build/src/org/kivy/android Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ protected String[] getLibraries() {
93
93
"SDL2_image" ,
94
94
"SDL2_mixer" ,
95
95
"SDL2_ttf" ,
96
- "python2.7" ,
97
96
"main"
98
97
};
99
98
}
@@ -104,9 +103,25 @@ public void loadLibraries() {
104
103
System .loadLibrary (lib );
105
104
}
106
105
107
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_io.so" );
108
- System .load (getFilesDir () + "/lib/python2.7/lib-dynload/unicodedata.so" );
109
-
106
+ try {
107
+ System .loadLibrary ("python2.7" );
108
+ } catch (UnsatisfiedLinkError e ) {
109
+ Log .v (TAG , "Failed to load libpython2.7" );
110
+ }
111
+
112
+ try {
113
+ System .loadLibrary ("python3.5m" );
114
+ } catch (UnsatisfiedLinkError e ) {
115
+ Log .v (TAG , "Failed to load libpython3.5m" );
116
+ }
117
+
118
+ try {
119
+ System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_io.so" );
120
+ System .load (getFilesDir () + "/lib/python2.7/lib-dynload/unicodedata.so" );
121
+ } catch (UnsatisfiedLinkError e ) {
122
+ Log .v (TAG , "Failed to load _io.so or unicodedata.so...but that's okay." );
123
+ }
124
+
110
125
try {
111
126
// System.loadLibrary("ctypes");
112
127
System .load (getFilesDir () + "/lib/python2.7/lib-dynload/_ctypes.so" );
You can’t perform that action at this time.
0 commit comments