2017-07-19 79 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; [現在該做什麼] –

相關問題