Gradle android build

Hi,

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.

  • Where:
    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.

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

Here is my classpath:

dependencies {
classpath ‘com.android.tools.build:gradle:2.1.2’
}

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

Thanks