2017-07-19 68 views
0

我运行了这个命令ionic cordova run android,但它给出了这个错误:build tool not found。当我运行android studio的构建函数正常运行没有任何错误。我只是不明白该怎么做。即使我删除了平台文件夹并添加了这个,但错误不会改变。 我离子生成失败,出现异常(生成工具未找到)

  • Windows10
  • 离子3.5
  • 节点v6.11.1-64
  • 模拟器:API 25
给定的错误是: -

Running command - failed! 

[ERROR] Cordova encountered an error. 
     You may get more insight by running the Cordova command above directly. 

[ERROR] An error occurred while running cordova build android (exit code 1): 

    FAILURE: Build failed with an exception. 
     * Where: 
     Script 'E:\wamp64\www\nutricity\platforms\android\CordovaLib\cordova.gradle' line: 64 

     * What went wrong: 
     A problem occurred evaluating root project 'android'. 
     > No installed build tools found. Install the Android build tools version 19.1.0 or higher. 

     * Try: 
     Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 
+0

你有什么科尔多瓦,Android平台的版本? –

+0

安装的平台: android 6.2.3 –

回答

0

如果说, ,这意味着系统: 1:它确实真的没有发现构建工具

2:为了让他找到建造你需要定义这些路径正确

人有经验,在此之前和可能的解决方案可以在这里找到的工具:ionic build Android | error: No installed build tools found. Please install the Android build tools

+0

我定义了路径:--ANDROID_HOME> E:\ Android \ tools; JAVA_HOME> C:\ Program Files \ Java \ jdk1.8.0_111; [现在该做什么] –

相关问题