If you prefer not to use Android Studio, you must manually structure the folders for the tools to work correctly. YouTube·ODK-X Team Android SDK - Command line tools Installation (Detailed)
If you already have Android Studio installed, you can fix this in a few clicks: If you prefer not to use Android Studio,
: Look for Android SDK Command-line Tools (latest) and check the box. If you prefer not to use Android Studio,