When I try cordova build android, I’m getting below gradle error, can anyone help
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
Build file ‘C:\Users~\Desktop\fcm\root\fcmnewpush\platforms\android\build.gradle’ line: 20
What went wrong:
A problem occurred evaluating root project ‘android’.
Plugin with id ‘com.android.application’ not found.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Here is my classpath:
I’m struggling to fix this issue, please help.
At the same time when I try to build through Android Studio, it is successfully outputs the apk