Skip to content

Commit a870db2

Browse files
Fix issue
1 parent 4f7e6a6 commit a870db2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android

pythonforandroid/bootstraps/common/build/src/main/java/org/kivy/android/PythonUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected static ArrayList<String> getLibraries(File libsDir) {
5959
addLibraryIfExists(libsList, name, libsDir);
6060
}
6161

62-
for (int v = 5; v <= 3.14; v++) {
62+
for (int v = 14; v >= 5; v--) {
6363
libsList.add("python3." + v + (v <= 7 ? "m" : ""));
6464
}
6565

@@ -85,7 +85,7 @@ public static void loadLibraries(File filesDir, File libsDir) {
8585
// load, and it has failed, give a more
8686
// general error
8787
Log.v(TAG, "Library loading error: " + e.getMessage());
88-
if (lib.startsWith("python3.14") && !foundPython) {
88+
if (lib.startsWith("python3.5") && !foundPython) {
8989
throw new RuntimeException("Could not load any libpythonXXX.so");
9090
} else if (lib.startsWith("python")) {
9191
continue;

0 commit comments

Comments
 (0)