The sdk environment variable has been configured correctly and adb is available, but this error is still prompted? Please tell me what's going on? Also, does this have something to do with using sudo to create a project?
仅有的幸福2017-06-08 11:04:50
echo $ANDROID_HOME outputs the android_home path to confirm whether it is set.
If not, edit /etc/environment and add ANDROID_HOME=/path/to/android/sdk
Execute source /etc/environment in the current session to ensure it takes effect