Could not get unknown property 'keystoreProperties' for SigningConfig

Viewed 82

ERROR

Could not get unknown property 'keystoreProperties' for SigningConfig$AgpDecorated_Decorated{name=release, storeFile=null, storePassword=null, keyAlias=null, keyPassword=null, storeType=pkcs12, v1SigningEnabled=true, v2SigningEnabled=true, enableV1Signing=null, enableV2Signing=null, enableV3Signing=null, enableV4Signing=null} of type com.android.build.gradle.internal.dsl.SigningConfig$AgpDecorated.

build.gradle (:app)

plugins {
        id 'com.android.application'
        id 'org.jetbrains.kotlin.android'
        id 'kotlin-android'
        id 'kotlin-kapt'
    }
    
    android {
        compileSdk 32
    
    
        defaultConfig {
            applicationId "com.sonkhiasinghansh.groceryapp"
            minSdk 19
            targetSdk 32
            versionCode 1
            versionName "1.0"
    
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        signingConfigs {
            release {
                keyAlias keystoreProperties['keyAlias']
                keyPassword keystoreProperties['keyPassword']
                storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
                storePassword keystoreProperties['storePassword']
            }
        }
        buildTypes {
            release {
                signingConfig signingConfigs.release
    
                minifyEnabled false
    
    
                proguardFiles(
                        getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
                )
            }
        }
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
        packagingOption {
            exclude 'META-INF/atonicfu.kotlin_module'
        }
        kotlinOptions {
            jvmTarget = '1.8'
        }
    }
    
    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10"
        implementation 'androidx.appcompat:appcompat:1.5.0'
        implementation 'androidx.core:core-ktx:1.8.0'
        implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
        testImplementation 'junit:junit:4.13.2'
        androidTestImplementation 'androidx.test.ext:junit:1.1.3'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    
        def room_version = "2.2.1"
        def lifecycle_version = "2.0.0"
    
        // Room and Architectural Components
        implementation "androidx.room:room-runtime:$room_version"
        implementation "androidx.legacy:legacy-support-v4:1.0.0"
        implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
        implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1'
        implementation "androidx.room:room-ktx:2.4.3"
        kapt "androidx.room:room-compiler:$room_version"
    
        // Coroutines
        implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
        implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1"
    
        // New Material Design
        implementation "com.google.android.material:material:1.6.1"
    
        // ViewModel
        implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
        implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
        //noinspection LifecycleAnnotationProcessorWithJava8
        kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
    
    }

enter image description here

0 Answers
Related