我在android studio中安装了android模拟器
我运行命令cordova -d模拟android
但是看到错误
/media/anonim/01D4C6F2C6169120/PROJECTS/PLANSTER/PRODUCTIONS/MOBILE/project/platforms/android/app/build/outputs/apk/debug/app-debug.apk
No scripts found for hook "before_deploy".
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/usr/lib/android-sdk (DEPRECATED)
Running command: adb devices
Command finished with error code 0: adb devices
Could not find either `android` or `avdmanager` on your $PATH! Are you sure the Android SDK is installed and available?
CordovaError: Could not find either `android` or `avdmanager` on your $PATH! Are you sure the Android SDK is installed and available?
at /media/anonim/01D4C6F2C6169120/PROJECTS/PLANSTER/PRODUCTIONS/MOBILE/Planster31/platforms/android/cordova/lib/emulator.js:176:35
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
在我的.bashrc中,我添加下一个字符串
export ANDROID_SDK=/home/anonim/Android/Sdk:@PATH
export PATH=/opt/gradle/gradle-5.4/bin:$PATH
但这不是解决方案
如何解决问题?