Firebase Android SDK causing Gradle error (With no error cause)

前端 未结 4 1458
隐瞒了意图╮
隐瞒了意图╮ 2021-01-26 04:57

I am trying to use Firebase in my Android Studio project and it is giving me an empty Gradle error.

I have tried using the Firebase SDK with Gradle, as well as putting t

4条回答
  •  旧时难觅i
    2021-01-26 05:18

    The complete app/build.gradle from one of my projects:

    apply plugin: 'com.android.application'
    
    android {
        compileSdkVersion 22
        buildToolsVersion "22.0.1"
    
        defaultConfig {
            applicationId "com.firebaseuser.nanochat"
            minSdkVersion 21
            targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        packagingOptions {
            exclude 'META-INF/LICENSE'
            exclude 'META-INF/LICENSE-FIREBASE.txt'
            exclude 'META-INF/NOTICE'
        }
    }
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'com.android.support:appcompat-v7:22.1.1'
        compile 'com.firebase:firebase-client-android:2.3.1+'
    }
    

提交回复
热议问题