Error while trying to emulate my app on Android

Hello everyone,

I’ve been trying to solve this problem but I can’t find anything. When I’m trying to emulate my app on the Android emulator, I get this error:

Could not get unknown property 'ANDROID_SUPPORT_ANNOTATIONS_VERSION'

I’ve been looking on Google but all the problems related to this one use some plugins that I don’t.

Here’s the full output of the error:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\PATH\myApp\platforms\android\app\build.gradle' line: 272

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'ANDROID_SUPPORT_ANNOTATIONS_VERSION' for objec
t of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHa
ndler.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\PATH\myApp\platforms\android\app\build.gradle' line: 272

* What went wrong:
A problem occurred evaluating project ':app'.
> Could not get unknown property 'ANDROID_SUPPORT_ANNOTATIONS_VERSION' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

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

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
[ERROR] An error occurred while running subprocess cordova.

        cordova emulate android exited with exit code 1.

        Re-running this command with the --verbose flag may provide more
        information.

Other details:

Ionic version: 3.9.2
Angular version: 5.2.11
Cordova platform version Android: 7.1.4

Could someone help me please?

Thanks