BUILD FAILED in 2s 40 actionable tasks: 1 executed, 39 up-to-date Command failed with exit code 1

Please any one help me. When I use ionic cordova build android --prod.

got build failed.

  • 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 2s
40 actionable tasks: 1 executed, 39 up-to-date
Command failed with exit code 1: C:\Users\ashfa\Office\testApp\platforms\android\gradlew cdvBuildDebug -b C:\Users\ashfa\Office\testApp\platforms\android\build.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.
1 Like