{"ErrorMemory":"ErrorMemory","type":"ANDROID_EMULATOR_NOT_FIND","message":"Not find android emulator!"}
  • 首先找到weex-tools安装目录
  • 1.没有安装模拟器,找到 \nodemodules\@weex-cli_device@2.0.0-beta.2@@weex-cli\device\node_modules\@weex-cli\utils\lib\android\android-env.js 函数 getEmulatorPath 中 注释 throw error_list_1.ANDROID_EMULATOR_NOT_FIND
  • 2.环境变量的路径有特殊字符, 找到 \nodemodules\@weex-cli_device@2.0.0-beta.2@@weex-cli\device\lib\android\android-devices.js 函数 getAndroidDevicesList中 修改 const text = process_js_1.runAndGetOutput('${this.androidSdk.ANDROID_ADB_PATH'} devices -l);const text = process_js_1.runAndGetOutput('adb devices -l')
  • adb命令需要注册系统环境变量