Problem when generating apk

hello someone can guide me with this, how do I solve
How can i fix this?
WARNING: Attempting to install plugin cordova-plugin-dialogs@0.2.10, but it
should have a minimum version of 1.3.1 to ensure compatibility with
the current platform versions. Installing the minimum version for
convenience, but you should adjust your dependencies.

While building Cordova app for platform Android:
Failed to find ‘ANDROID_HOME’ environment variable. Try setting setting it
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’

How can I configure that route without error?

Hope someone could help me! Regards!

Did you check ANDROID HOME is valid? Setting up Cordova is annoying at first :frowning: personally I think the whole Android Dev env is a mess to set up