Home > OS >  I am doing my final project, this shows on my gradle can anyone solve this?
I am doing my final project, this shows on my gradle can anyone solve this?

Time:06-20

This is the error I have:[enter image description here][1]

[1]: https://i.stack.imgur.com/xwEkX.pngstrong text

this is my build

plugins { id 'com .android .application' id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin' }

android { compile Sdk 31

default Config {
    application Id "com. example. tts"
    min Sdk 21
    target Sdk 31
    version Code 1
    version Name "1.0"

    test Instrumentation Runner "android x. test. runner. Android JUnit Runner"
}

build Types {
    release {
        minify Enabled false
        pro guard Files get Default Pro guard File('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
compile Options {
    source Compatibility JavaVersion.VERSION_1_8
    target Compatibility JavaVersion.VERSION_1_8
}
build Features {
    view Binding true
}

}

dependencies {

implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'com.google.android.gms:play-services-maps:18.0.2'
implementation 'com.google.android.libraries.maps:maps:3.1.0-beta'
implementation 'com.google.firebase:firebase-firestore:24.1.2'
implementation 'com.google.firebase:firebase-auth:21.0.5'
implementation 'org.testng:testng:6.9.6'
implementation 'com.google.firebase:firebase-storage:20.0.1'
test Implementation 'junit:junit:4.13.2'
android Test Implementation 'androidx.test.ext:junit:1.1.3'
android Test Implementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.google.firebase:firebase-database:20.0.5'

}

CodePudding user response:

Try This

gradle.properties(Project Properties)

android.useAndroidX=true
android.enableJetifier=true

CodePudding user response:

maybe you are in offline gradle mode. Just turn off the Toggle Offline Mode . see this

  • Related