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:
Colin Edwards 2024-01-17 23:36:49 -06:00
parent 380e0abbe4
commit 5a2267bdb4
1 changed files with 1 additions and 1 deletions

View File

@ -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)