diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index 34364b5e8..c0b07f83c 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -244,7 +244,10 @@ def apache_ant_dir(self): @property def sdkmanager_path(self): sdkmanager_path = join( - self.android_sdk_dir, 'tools', 'bin', 'sdkmanager') + self.android_sdk_dir, 'cmdline-tools', 'bin', 'sdkmanager') + if not os.path.isfile(sdkmanager_path): + sdkmanager_path = join( + self.android_sdk_dir, 'tools', 'bin', 'sdkmanager') if not os.path.isfile(sdkmanager_path): raise BuildozerException( ('sdkmanager path "{}" does not exist, sdkmanager is not'