weixin_43296748
API的Porter
采纳率33.3%
2019-05-15 15:31 阅读 347

webstorm中ionic项目启动报错

报错信息

> cordova run android --emulator
Failed to run "javac -version", make sure that you have a JDK version 8 installed.
You can get it from the following location:
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Your JAVA_HOME is invalid: D:Java\jdk1.8.0_181

项目的目录结构

项目目录结构

环境变量

图片说明图片说明

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    weixin_43296748 API的Porter 2019-05-16 13:55

    好吧,是路径的错误,D:Java\jdk1.8.0_181 这里少了“\“;正确的路径是:D:\Java\jdk1.8.0_181

    点赞 评论 复制链接分享

相关推荐