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

前端 未结 4 1454
隐瞒了意图╮
隐瞒了意图╮ 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条回答
  •  太阳男子
    2021-01-26 05:34

    you might need to enable multidex.

    android {
        compileSdkVersion 21
        buildToolsVersion "21.1.0"
    
        defaultConfig {
            ...
            minSdkVersion 14
            targetSdkVersion 21
            ...
    
            // Enabling multidex support.
            multiDexEnabled true
        }
        ...
    }
    
    dependencies {
      compile 'com.android.support:multidex:1.0.0'
    }
    

提交回复
热议问题