1 Answers1

0

Normally your grade file should containt the fowllowing line:



android {
    compileSdkVersion 30

    defaultConfig {
        applicationId "com.domaine.appName"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

Try to include the missing line in between

android {
}

But don't forget to change com.domaine.appName by your domaine and appName.

Please take a look here because it was already answered here.

stic-lab
  • 433
  • 7
  • 16