@@ -30,14 +30,13 @@ def check_ndk_version(ndk_dir):
30
30
31
31
if version is None :
32
32
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 (
41
40
min_supported = MIN_NDK_VERSION ,
42
41
rec_version = RECOMMENDED_NDK_VERSION ,
43
42
ndk_url = NDK_DOWNLOAD_URL ,
@@ -65,9 +64,9 @@ def check_ndk_version(ndk_dir):
65
64
66
65
if major_version < MIN_NDK_VERSION :
67
66
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 ,
71
70
),
72
71
instructions = (
73
72
'Please, go to the android NDK page ({ndk_url}) and download a'
0 commit comments