@@ -30,14 +30,13 @@ def check_ndk_version(ndk_dir):
3030
3131 if version is None :
3232 warning (
33- 'Unable to read the NDK version, assuming that you are using an'
34- ' NDK greater than {min_supported} (the minimum NDK required to'
35- ' use p4a successfully).\n '
36- 'Note: If you got build errors, consider to download the'
37- ' recommended NDK version which is {rec_version} and try'
38- ' it again (after removing all the files generated with this'
39- ' build). To download the android NDK visit the following page: '
40- '{ndk_url}' .format (
33+ 'Unable to read the NDK version from the given directory '
34+ '{}' .format (ndk_dir )
35+ )
36+ warning (
37+ "Make sure your NDK version is greater than {min_supported}. "
38+ "If you get build errors, download the recommended NDK "
39+ "{rec_version} from {ndk_url}" .format (
4140 min_supported = MIN_NDK_VERSION ,
4241 rec_version = RECOMMENDED_NDK_VERSION ,
4342 ndk_url = NDK_DOWNLOAD_URL ,
@@ -65,9 +64,9 @@ def check_ndk_version(ndk_dir):
6564
6665 if major_version < MIN_NDK_VERSION :
6766 raise BuildInterruptingException (
68- 'Unsupported NDK version detected {user_version} \n '
69- '* Note: Minimum supported NDK version is {min_supported }' .format (
70- user_version = string_version , min_supported = MIN_NDK_VERSION
67+ 'The minimum supported NDK version is {min_supported}. You can '
68+ 'download it from {ndk_url }' .format (
69+ min_supported = MIN_NDK_VERSION , ndk_url = NDK_DOWNLOAD_URL ,
7170 ),
7271 instructions = (
7372 'Please, go to the android NDK page ({ndk_url}) and download a'
0 commit comments