Merge pull request #30758 from jandrewlong/fix-android-detect

fix detecting ndk platform
This commit is contained in:
Rémi Verschelde 2019-07-22 20:55:28 +02:00 committed by GitHub
commit 0a502efc3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: