运行cordova build android --save时报错

Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'android'.

    Could not resolve all dependencies for configuration ':_debugApk'.
    A problem occurred configuring project ':CordovaLib'.
    Failed to notify project evaluation listener.
    > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependen
    cyCacheDir(Ljava/io/File;)V

  • 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 0s