Build Failed for build.gradle

Hi All,
I built my new ionic5 app but I receive build.gradle error in my log.

Command failed with exit code 1: C:\projects\mgdlab\ionic\oto-app\platforms\android\gradlew cdvBuildRelease -b C:\projects\mgdlab\ionic\oto-app\platforms\android\build.gradle

I solved an equal problem by modifying the file build.gradle but I don’t remember how.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.3.50'
    apply from: 'repositories.gradle'
    repositories repos

    dependencies {
        classpath ''
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files

allprojects {
    apply from: 'repositories.gradle'
    repositories repos

    //This replaces w.r.t. build settings
    project.ext {
      defaultBuildToolsVersion="29.0.2" //String
      defaultMinSdkVersion=22 //Integer - Minimum requirement is Android 5.1
      defaultTargetSdkVersion=29 //Integer - We ALWAYS target the latest by default
      defaultCompileSdkVersion=29 //Integer - We ALWAYS compile with the latest by default

task clean(type: Delete) {
    delete rootProject.buildDir