From 5a2267bdb4e6d4eefec51ac0f7b616550f567b88 Mon Sep 17 00:00:00 2001 From: Colin Edwards Date: Wed, 17 Jan 2024 23:36:49 -0600 Subject: [PATCH] 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 --- android/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.py b/android/build.py index 8a95c13b1..9163268b5 100755 --- a/android/build.py +++ b/android/build.py @@ -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)