At first I didn’t understand the cause of the problem I encountered, but finally found it. It was due to Android Studio’s change. So I changed this topic’s title.
It is the file named as check_reqs.js, which is generated in .meteor/local/cordova-build/platforms/android/cordova/lib/ when meteor add-platform android is executed,
The problem happends at line 248 - 249:
var msg = 'Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.';
return tryCommand('android list targets --compact', msg)
This doesn’t seem to work because of android list targets --compact.
I could make sure it like this:
$ android list targets --compact
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Invalid or unsupported command "list targets --compact"
Supported commands are:
android list target
android list avd
android list device
android create avd
android move avd
android delete avd
android list sdk
android update sdk
$ echo $?
2