From 860365bef1e18508d733c2ffa8ee781abb059a3d Mon Sep 17 00:00:00 2001 From: J Andrew Long Date: Mon, 22 Jul 2019 13:38:53 -0400 Subject: [PATCH] fix detecting ndk platform python maps are not subscriptable, so we need to use a list --- platform/android/detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/detect.py b/platform/android/detect.py index 7b88abac4c7..5f4a4763def 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -317,7 +317,7 @@ def get_ndk_version(path): try: with open(prop_file_path) as prop_file: for line in prop_file: - key_value = map(lambda x: string.strip(x), line.split("=")) + key_value = list(map(lambda x: x.strip(), line.split("="))) if key_value[0] == "Pkg.Revision": return key_value[1] except: