Android target: No android targets (SDKs) installed!

can anyone help me with this , i’m new to meteor and i am using ubuntu to do my first android project , when i use meteor run android this error arises

✓ Java JDK
✓ Android SDK
✗ Android target: No android targets (SDKs) installed!
✓ Gradle
my environment variables in .bashrc are :

export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=${ANDROID_HOME}
export PATH=${PATH}:${ANDROID_HOME}/emulator
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

thank you un advance

Have you tried to open the Android Studio, go to the “SDK Manager” and install a SDK platform with the versions that your Meteor apps uses?

You can install SDK-33 and 34, and see how it goes.

If you prefer to use the command line:

sdkmanager "platform-tools" "platforms;android-<version>"

Let me know if this helps.


Please, also be sure to add all these envs:

export ANDROID_HOME=$HOME/Library/Android/sdk
export ANDROID_SDK_ROOT=${ANDROID_HOME}
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH

Docs: Cordova | Docs

cmdline-tools is important for many of the binaries like sdkmanager or other used as part of the Meteor project to work properly.