Well, I have a problem.
I have installed Android Studio and it works normally to develop applications. But when I run the code on ionic
ionic cordova build
An error has occurred
Android Studio project detected
Running command: /home/junior/todo/hooks/after_prepare/010_add_platform_class.js /home/junior/todo
(node:31897) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to find 'ANDROID_HOME' environment variable. Try setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
How can I resolve this problem?