Skip to content

Commit 24cda50

Browse files
committed
treat no ndk_version as < 22
1 parent bec4ac8 commit 24cda50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ def prepare_build_environment(self,
399399
arch = self.archs[0]
400400
toolchain_prefix = arch.toolchain_prefix
401401
ndk_version = read_ndk_version(ndk_dir)
402-
if ndk_version is not None and ndk_version < LooseVersion('22'):
402+
if ndk_version is None or ndk_version < LooseVersion('22'):
403403
self.ndk_platform, ndk_platform_dir_exists = get_ndk_platform_dir(
404404
self.ndk_dir, self.ndk_api, arch)
405405
ok = ok and ndk_platform_dir_exists

0 commit comments

Comments
 (0)