diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py index 4ab2f596d1..9bdb69491e 100644 --- a/pythonforandroid/build.py +++ b/pythonforandroid/build.py @@ -235,6 +235,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir, else: error('Could not find `android` or `sdkmanager` binaries in ' 'Android SDK. Exiting.') + exit(1) apis = [s for s in targets if re.match(r'^ *API level: ', s)] apis = [re.findall(r'[0-9]+', s) for s in apis] apis = [int(s[0]) for s in apis if s]