Useful or not, from you.
react-native-firebase Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.

My Android project has error, after configure react-native-firebase.

Error:

org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'. at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:154) at .....

My 'app/build.gradle':

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
    buildToolsVersion rootProject.ext.buildToolsVersion

    defaultConfig {
        applicationId "com.xxx"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86"
        }
    }
    buildTypes {
        release {
            minifyEnabled enableProguardInReleaseBuilds
            proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
        }
    }
    // applicationVariants are e.g. debug, release
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            // For each separate APK per architecture, set a unique version code as described here:
            // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
            def versionCodes = ["armeabi-v7a":1, "x86":2]
            def abi = output.getFilter(OutputFile.ABI)
            if (abi != null) {  // null for the universal-debug, universal-release variants
                output.versionCodeOverride =
                        versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
            }
        }
    }
}

apply plugin: 'com.google.gms.google-services'

dependencies {
    //implementation project(':react-native-device-info')
    implementation project(':react-native-google-places')
    compile project(':react-native-autogrow-textinput')
    compile(project(':react-native-firebase')) {
        transitive = false
    }
    compile (project(':react-native-device-info')){
        exclude group: "com.google.android.gms"
    }
    compile ("com.google.android.gms:play-services-location:15.0.1") {
        force = true;
    }
    compile ("com.google.android.gms:play-services-places:15.0.1") {
        force = true;
    }
    compile ("com.google.android.gms:play-services-base:15.0.1") {
        force = true;
    }
    compile ("com.google.android.gms:play-services-maps:15.0.1") {
        force = true;
    }
    compile ("com.google.android.gms:play-services-gcm:15.0.1") {
        force = true;
    }
    compile ('com.google.firebase:firebase-core:15.0.2') {
        force = true;
    }
    compile ('com.google.firebase:firebase-messaging:15.0.2') {
        force = true;
    }
    compile project(':react-native-linear-gradient')
    compile project(':react-native-image-picker')
    compile project(':react-native-fbsdk')
    compile project(':react-native-vector-icons')
    compile project(':react-native-gesture-handler')
    compile project(':react-native-geolocation-service')
    compile project(':react-native-linear-gradient')
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
    implementation "com.facebook.react:react-native:+"  // From node_modules
    implementation 'com.facebook.android:facebook-android-sdk:4.34.0'
    //implementation "com.google.android.gms:play-services-base:15.0.0"
    //implementation "com.google.firebase:firebase-core:15.0.2"
    //implementation "com.google.firebase:firebase-messaging:15.0.2"
    implementation project(':react-native-fbsdk')
}
apply plugin: 'com.google.gms.google-services'  // Google Play services Gradle

// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
    from configurations.compile
    into 'libs'
}

My 'build.gradle' in root:

buildscript {
    ext {
        buildToolsVersion = "27.0.3"
        minSdkVersion = 16
        compileSdkVersion = 27
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
        googlePlayServicesVersion = "11.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.0'
        classpath 'com.google.gms:google-services:4.2.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        google()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

subprojects {
    project.configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.android.support'
                    && !details.requested.name.contains('multidex') ) {
                details.useVersion "27.1.1"
            }
        }
    }
}


task wrapper(type: Wrapper) {
    gradleVersion = '4.4'
    distributionUrl = distributionUrl.replace("bin", "all")
}

Any solution? I've been having this issue for two days.

Thanks!!!

That's a useful answer
Without any help

I try, but same issue.

more error details, when run 'react-native run-android'.

Task :react-native-firebase:compileDebugJavaWithJavac FAILED /Users/gabriel/Documents/ufrilla/ufrilla-app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:231: error: cannot find symbol return createChannelGroupMap(notificationManager.getNotificationChannelGroup(channelGroupId)); ^ symbol: method getNotificationChannelGroup(String) location: variable notificationManager of type NotificationManager /Users/gabriel/Documents/ufrilla/ufrilla-app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:331: error: cannot find symbol notificationChannelGroup.setDescription(description); ^ symbol: method setDescription(String) location: variable notificationChannelGroup of type NotificationChannelGroup /Users/gabriel/Documents/ufrilla/ufrilla-app/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:407: error: cannot find symbol writableMap.putString("description", notificationChannelGroup.getDescription()); ^ symbol: method getDescription() location: variable notificationChannelGroup of type NotificationChannelGroup Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors

FAILURE: Build failed with an exception.