我运行了此命令ionic cordova run android
,但它出现了此错误:build tool not found
。当我运行android studio时,构建函数正常运行而没有任何错误。我无法理解该怎么做。即使我删除了平台文件夹并添加了这个,但错误没有改变。
我有
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 :(得分:0)
答案 1 :(得分:0)
对我有用的解决方案:
(如果未更改,则为默认路径)