Skip to content

Commit 08dab39

Browse files
committed
Set Android min API to 24
Avoids a very common error: ``` ImportError: cannot import name 'if_indextoname' from 'socket' ```
1 parent f50823a commit 08dab39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildozer/default.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ fullscreen = 0
112112
#android.api = 33
113113

114114
# (int) Minimum API your APK / AAB will support.
115-
#android.minapi = 21
115+
#android.minapi = 24
116116

117117
# (int) Android SDK version to use
118118
#android.sdk = 20

buildozer/targets/android.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
WSL = 'microsoft' in uname()[2].lower()
1212

1313
ANDROID_API = '33'
14-
ANDROID_MINAPI = '21'
14+
ANDROID_MINAPI = '24'
1515
APACHE_ANT_VERSION = '1.9.4'
1616

1717
# This constant should *not* be updated, it is used only in the case

0 commit comments

Comments
 (0)