From the error it appears that you have neither Java nor Android Studio installed, ANDROID_SDK_ROOT & ANDOID_HOME are both undefined!
Try it:
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.