ionic 3,gradle的cordova@8.1.2插件错误

时间:2018-11-04 07:32:14

标签: cordova ionic3 ubuntu-16.04

在ubuntu16.04中运行离子应用程序时出现以下错误 我正在尝试在以下命令下运行:

sudo -E ionic cordova run android --device

并得到错误消息:

"Could not find an installed version of Gradle either in Android Studio, or on your system to install the gradle wrapper. Please include gradle  in your path, or install Android Studio"

即使在环境变量中安装并添加了gradle,也会出现相同的错误。

系统配置:

  • ionic cli-4.2.1
  • cordova-8.2.1
  • 成绩-4.10.2
  • npm-6.4.1

下面是错误的屏幕截图。

cordova run error

我为这个问题浏览了所有可能的解决方案。仍然出现相同的错误。

0 个答案:

没有答案