@@ -121,7 +121,7 @@ def android_api(self, value):
121
121
def ndk_ver (self ):
122
122
'''The version of the NDK being used for compilation.'''
123
123
if self ._ndk_ver is None :
124
- raise ValueError ('Tried to access android_api but it has not '
124
+ raise ValueError ('Tried to access ndk_ver but it has not '
125
125
'been set - this should not happen, something '
126
126
'went wrong!' )
127
127
return self ._ndk_ver
@@ -134,7 +134,7 @@ def ndk_ver(self, value):
134
134
def sdk_dir (self ):
135
135
'''The path to the Android SDK.'''
136
136
if self ._sdk_dir is None :
137
- raise ValueError ('Tried to access android_api but it has not '
137
+ raise ValueError ('Tried to access sdk_dir but it has not '
138
138
'been set - this should not happen, something '
139
139
'went wrong!' )
140
140
return self ._sdk_dir
@@ -147,7 +147,7 @@ def sdk_dir(self, value):
147
147
def ndk_dir (self ):
148
148
'''The path to the Android NDK.'''
149
149
if self ._ndk_dir is None :
150
- raise ValueError ('Tried to access android_api but it has not '
150
+ raise ValueError ('Tried to access ndk_dir but it has not '
151
151
'been set - this should not happen, something '
152
152
'went wrong!' )
153
153
return self ._ndk_dir
@@ -314,6 +314,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir,
314
314
'need to manually set the NDK ver.' )
315
315
if ndk_ver is None :
316
316
warning ('Android NDK version could not be found, exiting.' )
317
+ exit (1 )
317
318
self .ndk_ver = ndk_ver
318
319
319
320
info ('Using {} NDK {}' .format (self .ndk .capitalize (), self .ndk_ver ))
0 commit comments