Android: Look for license to verify Android SDK folder
The `android` command was depricated and has been removed from new installs of the sdk The license file existing is about all that is stable between different sdk versions and cli vs Android studio installs
This commit is contained in:
parent
380e0abbe4
commit
5a2267bdb4
|
@ -13,7 +13,7 @@ ndk_path = sys.argv[2]
|
|||
android_abi = sys.argv[3]
|
||||
configure_args = sys.argv[4:]
|
||||
|
||||
if not os.path.isfile(os.path.join(sdk_path, 'tools', 'android')):
|
||||
if not os.path.isfile(os.path.join(sdk_path, 'licenses', 'android-sdk-license')):
|
||||
print("SDK not found in", sdk_path, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
|
Loading…
Reference in New Issue