I ran this command ionic cordova run android
but it gave this error: build tool not found
. When I run android studio the build function runs properly without any errors. I just can't understand what to do. Even I removed the platform folder and add this but the error does not change.
I have
- Windows10
- Ionic 3.5
- node-v6.11.1-x64
- emulator: 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.