android – Erro Ionic: Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’

Sou nova no Ionic, tentei dar o comando “ionic cordova build android” e apresentou o seguinte erro, como posso prosseguir?

C:androidAreaPerimetro>ionic cordova build android

ionic-v1.cmd build
(22:27:26) Cannot load gulp: ReferenceError: primordials is not defined
(22:27:27) Cannot load gulp: ReferenceError: primordials is not defined
(22:27:27) Cannot run sass task: missing in gulpfile.js
(22:27:27) Cannot load gulp: ReferenceError: primordials is not defined
cordova.cmd build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=c:androidandroid-sdk (recommended setting)
ANDROID_HOME=C:android (DEPRECATED)
Using Android SDK: C:android
Subproject Path: CordovaLib
Subproject Path: app
<Checking the license for package Android SDK Platform 29 in C:androidlicenses
Warning: License for package Android SDK Platform 29 not accepted.

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

Failed to install the following Android SDK packages as some licences have not been accepted.
platforms;android-29 Android SDK Platform 29
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

Using Android SDK: C:android

  • Try:
    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

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

BUILD FAILED in 2m 49s
Command failed with exit code 1: C:androidAreaPerimetroplatformsandroidgradlew cdvBuildDebug -b C:androidAreaPerimetroplatformsandroidbuild.gradle
(ERROR) An error occurred while running subprocess cordova.

    cordova.cmd build android exited with exit code 1.

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