Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

[React-Native] Gradle plugin conflict with other native library #111

Open
william-normann opened this issue Nov 4, 2019 · 4 comments
Open

Comments

@william-normann
Copy link

william-normann commented Nov 4, 2019

Hello, I met some issue with Onesignal Gradle Plugin when upgraded my project to React Native 0.60.6.

When apply com.onesignal.androidsdk.onesignal-gradle-plugin gradle build always rise Error with below outputs:

Everything fine when disable one signal gradle plugin

// apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

I think one signal-gradle-plugin tried to do something out of one signal scope. And my temporary solution is don't apply plugin when build project.

Please Add The Following

Project Setup

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
        googlePlayServicesVersion = "16.0.0"
        googlePlayServicesVisionVersion = "16.2.0"
        reactNativeVersion = "0.60.6"
        reactNative = rootProject.ext.reactNativeVersion
        reactNativeLibVersion = rootProject.ext.reactNativeVersion
        fresco = "1.13.0"
        multidex = "2.0.1"
        accountKitSdkVersion = "5.0.+"
    }

    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        classpath 'com.google.gms:google-services:4.2.0'
    }
}

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

        google()
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion rootProject.ext.compileSdkVersion
                buildToolsVersion rootProject.ext.buildToolsVersion
            }
        }
    }
}


configurations.all {
        resolutionStrategy.eachDependency { details ->
            if (details.requested.group == 'com.facebook.react') {
                details.useVersion rootProject.ext.reactNativeVersion
            }
        }
 }


wrapper {
    gradleVersion = '5.4.1'
    distributionUrl = distributionUrl.replace("bin", "all")
}

app/build.gradle

buildscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
    }
    dependencies {
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.3, 0.99.99]'
    }
}

// TODO: need fix onesignal-gradle-plugin conflict with background-geolocation
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
apply plugin: "com.android.application"

project.ext.envConfigFiles = [
    debug: ".env.development",
    release: ".env.production",
    anothercustombuild: ".env",
]
project.ext.vectoricons = [
    iconFontNames: [
        'MaterialIcons.ttf',
        'EvilIcons.ttf',
        'Feather.ttf',
        'FontAwesome.ttf',
        'FontAwesome5_Brands.ttf',
        'FontAwesome5_Regular.ttf',
        'FontAwesome5_Solid.ttf',
        'Ionicons.ttf',
        'MaterialCommunityIcons.ttf',
        'Entypo.ttf',
        'Foundation.ttf'
        ] // Name of the font files you want to copy
]

apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

import com.android.build.OutputFile

project.ext.react = [
    entryFile: "index.js",
    enableHermes: false,  // clean and rebuild if changing
]

apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"

def enableSeparateBuildPerCPUArchitecture = false
def enableProguardInReleaseBuilds = false
def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false);

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

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.logivan"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 592
        versionName "3.32.0"
        ndk {
            ndk.abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
        }
        multiDexEnabled true
        missingDimensionStrategy 'react-native-camera', 'general'
        resConfigs "vi"
    }

    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also generate a universal APK
            include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
        }
    }
    signingConfigs {
        debug {
            storeFile file('debug.keystore')
            storePassword 'android'
            keyAlias 'androiddebugkey'
            keyPassword 'android'
        }
    }
    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
        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:
            // https://developer.android.com/studio/build/configure-apk-splits.html
            def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
            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
            }

        }
    }

    packagingOptions {
            pickFirst '**/armeabi-v7a/libc++_shared.so'
            pickFirst '**/x86/libc++_shared.so'
            pickFirst '**/arm64-v8a/libc++_shared.so'
            pickFirst '**/x86_64/libc++_shared.so'
            pickFirst '**/x86/libjsc.so'
            pickFirst '**/armeabi-v7a/libjsc.so'
    }
}

dependencies {
    implementation (project(':react-native-onesignal')){
        exclude group: 'com.google.android.gms'
        exclude group: 'com.google.firebase', module: 'firebase-messaging'
    }
    implementation project(':react-native-code-push')
    implementation "com.facebook.fresco:fresco:${rootProject.ext.fresco}"
    implementation "com.facebook.fresco:animated-gif:${rootProject.ext.fresco}"
    implementation "androidx.multidex:multidex:${rootProject.ext.multidex}"
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "com.facebook.react:react-native:${rootProject.ext.reactNativeVersion}"  // From node_modules

    if (enableHermes) {
        def hermesPath = "../../node_modules/hermesvm/android/";
        debugImplementation files(hermesPath + "hermes-debug.aar")
        releaseImplementation files(hermesPath + "hermes-release.aar")
    } else {
        implementation jscFlavor
    }
}

configurations.all {
    resolutionStrategy {
    }
}

// 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'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

Full Error

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':@mauron85_react-native-background-geolocation'.
> Cannot change artifacts of configuration ':@mauron85_react-native-background-geolocation:default' after it has been included in dependency resolution.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':@mauron85_react-native-background-geolocation'.
        at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:79)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:72)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.access$600(LifecycleProjectEvaluator.java:53)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:198)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject$1.run(LifecycleProjectEvaluator.java:111)
        at org.gradle.internal.Factories$1.create(Factories.java:25)
        at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
        at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:226)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:220)
        at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withMutableState(DefaultProjectStateRegistry.java:186)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:95)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:67)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:695)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:143)
        at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:41)
        at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:302)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
        at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:210)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
        at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134)
        at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
        at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
        at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
        at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
        at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
        at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
        at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
        at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
        at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
        at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:51)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:45)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
        at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
        at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:45)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
        at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
        at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
        at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
        at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
        at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
        at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
        at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
        at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
        at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
        at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
        at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
        at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
        at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
        at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
        at org.gradle.util.Swapper.swap(Swapper.java:38)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
        at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
        at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.InvalidUserDataException: Cannot change artifacts of configuration ':@mauron85_react-native-background-geolocation:default' after it has been included in dependency resolution.
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.preventIllegalMutation(DefaultConfiguration.java:1076)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.validateMutation(DefaultConfiguration.java:1038)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$3.execute(DefaultConfiguration.java:296)
        at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration$3.execute(DefaultConfiguration.java:293)
        at org.gradle.internal.ImmutableActionSet$SingletonSet.execute(ImmutableActionSet.java:225)
        at org.gradle.api.internal.DefaultDomainObjectSet.assertMutableCollectionContents(DefaultDomainObjectSet.java:65)
        at org.gradle.api.internal.DefaultDomainObjectCollection.add(DefaultDomainObjectCollection.java:235)
        at org.gradle.api.internal.DelegatingDomainObjectSet.add(DelegatingDomainObjectSet.java:98)
        at org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler.pushArtifact(DefaultArtifactHandler.java:56)
        at org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler.add(DefaultArtifactHandler.java:68)
        at com.android.build.gradle.internal.LibraryTaskManager.createBundleTask(LibraryTaskManager.java:417)
        at com.android.build.gradle.internal.LibraryTaskManager.createTasksForVariantScope(LibraryTaskManager.java:369)
        at com.android.build.gradle.internal.VariantManager.createTasksForVariantData(VariantManager.java:497)
        at com.android.build.gradle.internal.VariantManager.createAndroidTasks(VariantManager.java:371)
        at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:762)
        at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
        at com.android.build.gradle.BasePlugin.lambda$createTasks$4(BasePlugin.java:646)
        at com.android.build.gradle.internal.crash.CrashReporting$afterEvaluate$1.execute(crash_reporting.kt:37)
        at com.android.build.gradle.internal.crash.CrashReporting$afterEvaluate$1.execute(crash_reporting.kt)
        at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1$1.run(DefaultListenerBuildOperationDecorator.java:150)
        at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.reapply(DefaultUserCodeApplicationContext.java:58)
        at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction$1.run(DefaultListenerBuildOperationDecorator.java:147)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
        at org.gradle.configuration.internal.DefaultListenerBuildOperationDecorator$BuildOperationEmittingAction.execute(DefaultListenerBuildOperationDecorator.java:144)
        at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91)
        at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80)
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
        at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
        at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
        at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)
        at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324)
        at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234)
        at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
        at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
        at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
        at com.sun.proxy.$Proxy29.afterEvaluate(Unknown Source)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:190)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate$1.execute(LifecycleProjectEvaluator.java:187)
        at org.gradle.api.internal.project.DefaultProject.stepEvaluationListener(DefaultProject.java:1424)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$NotifyAfterEvaluate.run(LifecycleProjectEvaluator.java:196)

Dependency Tree

Run ./gradlew app:dependencies

releaseRuntimeClasspath - Resolved configuration for runtime for variant: release
+--- project :react-native-onesignal
|    +--- com.onesignal:OneSignal:3.12.2
|    |    +--- androidx.cardview:cardview:1.0.0
|    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    +--- androidx.legacy:legacy-support-v4:1.0.0
|    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    |    +--- androidx.lifecycle:lifecycle-runtime:2.0.0 -> 2.1.0
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.1.0
|    |    |    |    |    |    \--- androidx.annotation:annotation:1.1.0
|    |    |    |    |    +--- androidx.arch.core:core-common:2.1.0
|    |    |    |    |    |    \--- androidx.annotation:annotation:1.1.0
|    |    |    |    |    \--- androidx.annotation:annotation:1.1.0
|    |    |    |    +--- androidx.versionedparcelable:versionedparcelable:1.1.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    |    |    \--- androidx.collection:collection:1.0.0 -> 1.1.0
|    |    |    |    |         \--- androidx.annotation:annotation:1.1.0
|    |    |    |    \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |    +--- androidx.media:media:1.0.0
|    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    \--- androidx.versionedparcelable:versionedparcelable:1.0.0 -> 1.1.0 (*)
|    |    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0
|    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- androidx.documentfile:documentfile:1.0.0
|    |    |    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.loader:loader:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata:2.0.0
|    |    |    |    |    |    +--- androidx.arch.core:core-runtime:2.0.0
|    |    |    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    |    |    \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
|    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-livedata-core:2.0.0
|    |    |    |    |    |    |    +--- androidx.lifecycle:lifecycle-common:2.0.0 -> 2.1.0 (*)
|    |    |    |    |    |    |    +--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
|    |    |    |    |    |    |    \--- androidx.arch.core:core-runtime:2.0.0 (*)
|    |    |    |    |    |    \--- androidx.arch.core:core-common:2.0.0 -> 2.1.0 (*)
|    |    |    |    |    \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.1.0
|    |    |    |    |         \--- androidx.annotation:annotation:1.1.0
|    |    |    |    +--- androidx.localbroadcastmanager:localbroadcastmanager:1.0.0
|    |    |    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    \--- androidx.print:print:1.0.0
|    |    |    |         \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    +--- androidx.legacy:legacy-support-core-ui:1.0.0
|    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
|    |    |    |    +--- androidx.customview:customview:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    \--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- androidx.viewpager:viewpager:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.customview:customview:1.0.0 (*)
|    |    |    |    +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.customview:customview:1.0.0 (*)
|    |    |    |    +--- androidx.drawerlayout:drawerlayout:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.customview:customview:1.0.0 (*)
|    |    |    |    +--- androidx.slidingpanelayout:slidingpanelayout:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.customview:customview:1.0.0 (*)
|    |    |    |    +--- androidx.interpolator:interpolator:1.0.0
|    |    |    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    +--- androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.interpolator:interpolator:1.0.0 (*)
|    |    |    |    +--- androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
|    |    |    |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    |    |    \--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    \--- androidx.cursoradapter:cursoradapter:1.0.0
|    |    |    |         \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |    \--- androidx.fragment:fragment:1.0.0 -> 1.1.0
|    |    |         +--- androidx.annotation:annotation:1.1.0
|    |    |         +--- androidx.core:core:1.1.0 (*)
|    |    |         +--- androidx.collection:collection:1.1.0 (*)
|    |    |         +--- androidx.viewpager:viewpager:1.0.0 (*)
|    |    |         +--- androidx.loader:loader:1.0.0 (*)
|    |    |         +--- androidx.activity:activity:1.0.0
|    |    |         |    +--- androidx.annotation:annotation:1.1.0
|    |    |         |    +--- androidx.core:core:1.1.0 (*)
|    |    |         |    +--- androidx.lifecycle:lifecycle-runtime:2.1.0 (*)
|    |    |         |    +--- androidx.lifecycle:lifecycle-viewmodel:2.1.0 (*)
|    |    |         |    \--- androidx.savedstate:savedstate:1.0.0
|    |    |         |         +--- androidx.annotation:annotation:1.1.0
|    |    |         |         +--- androidx.arch.core:core-common:2.0.1 -> 2.1.0 (*)
|    |    |         |         \--- androidx.lifecycle:lifecycle-common:2.0.0 -> 2.1.0 (*)
|    |    |         \--- androidx.lifecycle:lifecycle-viewmodel:2.0.0 -> 2.1.0 (*)
|    |    \--- androidx.browser:browser:1.0.0
|    |         +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |         +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |         +--- androidx.interpolator:interpolator:1.0.0 (*)
|    |         +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |         \--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
|    \--- com.facebook.react:react-native:0.60.6
|         +--- com.facebook.infer.annotation:infer-annotation:0.11.2
|         |    \--- com.google.code.findbugs:jsr305:3.0.1 -> 3.0.2
|         +--- javax.inject:javax.inject:1
|         +--- androidx.appcompat:appcompat:1.0.2 -> 1.1.0
|         |    +--- androidx.annotation:annotation:1.1.0
|         |    +--- androidx.core:core:1.1.0 (*)
|         |    +--- androidx.cursoradapter:cursoradapter:1.0.0 (*)
|         |    +--- androidx.fragment:fragment:1.1.0 (*)
|         |    +--- androidx.appcompat:appcompat-resources:1.1.0
|         |    |    +--- androidx.annotation:annotation:1.1.0
|         |    |    +--- androidx.core:core:1.0.1 -> 1.1.0 (*)
|         |    |    +--- androidx.vectordrawable:vectordrawable:1.1.0
|         |    |    |    +--- androidx.annotation:annotation:1.1.0
|         |    |    |    +--- androidx.core:core:1.1.0 (*)
|         |    |    |    \--- androidx.collection:collection:1.1.0 (*)
|         |    |    +--- androidx.vectordrawable:vectordrawable-animated:1.1.0
|         |    |    |    +--- androidx.vectordrawable:vectordrawable:1.1.0 (*)
|         |    |    |    +--- androidx.interpolator:interpolator:1.0.0 (*)
|         |    |    |    \--- androidx.collection:collection:1.1.0 (*)
|         |    |    \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|         |    +--- androidx.drawerlayout:drawerlayout:1.0.0 (*)
|         |    \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|         +--- com.facebook.fresco:fresco:2.0.0
|         |    +--- com.facebook.fresco:fbcore:2.0.0
|         |    +--- com.facebook.fresco:drawee:2.0.0
|         |    |    +--- com.facebook.fresco:fbcore:2.0.0
|         |    |    \--- com.facebook.fresco:imagepipeline:2.0.0
|         |    |         +--- com.facebook.fresco:imagepipeline-base:2.0.0
|         |    |         |    +--- com.facebook.soloader:soloader:0.6.0
|         |    |         |    +--- com.parse.bolts:bolts-tasks:1.4.0
|         |    |         |    \--- com.facebook.fresco:fbcore:2.0.0
|         |    |         +--- com.facebook.soloader:soloader:0.6.0
|         |    |         +--- com.parse.bolts:bolts-tasks:1.4.0
|         |    |         \--- com.facebook.fresco:fbcore:2.0.0
|         |    +--- com.facebook.fresco:imagepipeline:2.0.0 (*)
|         |    +--- com.facebook.fresco:nativeimagefilters:2.0.0
|         |    |    +--- com.facebook.fresco:imagepipeline:2.0.0 (*)
|         |    |    +--- com.facebook.soloader:soloader:0.6.0
|         |    |    +--- com.parse.bolts:bolts-tasks:1.4.0
|         |    |    \--- com.facebook.fresco:fbcore:2.0.0
|         |    +--- com.facebook.fresco:nativeimagetranscoder:2.0.0
|         |    |    +--- com.facebook.fresco:imagepipeline-base:2.0.0 (*)
|         |    |    +--- com.facebook.soloader:soloader:0.6.0
|         |    |    +--- com.parse.bolts:bolts-tasks:1.4.0
|         |    |    \--- com.facebook.fresco:fbcore:2.0.0
|         |    \--- com.facebook.soloader:soloader:0.6.0
|         +--- com.facebook.fresco:imagepipeline-okhttp3:2.0.0
|         |    +--- com.squareup.okhttp3:okhttp:3.12.1
|         |    |    \--- com.squareup.okio:okio:1.15.0 -> 1.17.4
|         |    +--- com.facebook.fresco:fbcore:2.0.0
|         |    \--- com.facebook.fresco:imagepipeline:2.0.0 (*)
|         +--- com.facebook.soloader:soloader:0.6.0
|         +--- com.google.code.findbugs:jsr305:3.0.2
|         +--- com.squareup.okhttp3:okhttp:3.12.1 (*)
|         +--- com.squareup.okhttp3:okhttp-urlconnection:3.12.1
|         |    \--- com.squareup.okhttp3:okhttp:3.12.1 (*)
|         \--- com.squareup.okio:okio:1.15.0 -> 1.17.4
+--- project :@mauron85_react-native-background-geolocation
|    +--- project :@mauron85_react-native-background-geolocation-common
|    |    +--- com.google.android.gms:play-services-location:16.0.0
|    |    |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0
|    |    |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- androidx.fragment:fragment:1.0.0 -> 1.1.0 (*)
|    |    |    |    +--- com.google.android.gms:play-services-basement:17.0.0
|    |    |    |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |    |    |    \--- androidx.fragment:fragment:1.0.0 -> 1.1.0 (*)
|    |    |    |    \--- com.google.android.gms:play-services-tasks:17.0.0
|    |    |    |         \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |    |    +--- com.google.android.gms:play-services-places-placereport:16.0.0
|    |    |    |    \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|    |    +--- com.android.support:support-compat:28.0.0 -> androidx.core:core:1.1.0 (*)
|    |    +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.1.0 (*)
|    |    +--- com.intentfilter:android-permissions:0.1.7
|    |    +--- com.github.tony19:logback-android:1.1.1-9
|    |    |    \--- com.github.tony19:apktool-lib:1.4.4-5
|    |    +--- org.slf4j:slf4j-api:1.7.21
|    |    \--- com.github.jparkie:promise:1.0.3
|    +--- org.slf4j:slf4j-api:1.7.21
|    \--- com.facebook.react:react-native:0.60.6 (*)
+--- project :react-native-code-push
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    \--- com.nimbusds:nimbus-jose-jwt:5.1
|         +--- com.github.stephenc.jcip:jcip-annotations:1.0-1
|         \--- net.minidev:json-smart:[1.3.1,2.3] -> 2.3
|              \--- net.minidev:accessors-smart:1.2
|                   \--- org.ow2.asm:asm:5.0.4
+--- com.facebook.fresco:fresco:1.13.0 -> 2.0.0 (*)
+--- com.facebook.fresco:animated-gif:1.13.0
|    +--- com.parse.bolts:bolts-tasks:1.4.0
|    +--- com.facebook.soloader:soloader:0.6.0
|    +--- com.facebook.fresco:fbcore:1.13.0 -> 2.0.0
|    \--- com.facebook.fresco:animated-base:1.13.0
|         +--- com.facebook.fresco:fbcore:1.13.0 -> 2.0.0
|         +--- com.facebook.fresco:imagepipeline-base:1.13.0 -> 2.0.0 (*)
|         +--- com.facebook.fresco:imagepipeline:1.13.0 -> 2.0.0 (*)
|         +--- com.facebook.fresco:animated-drawable:1.13.0
|         |    +--- com.facebook.fresco:imagepipeline:1.13.0 -> 2.0.0 (*)
|         |    +--- com.facebook.fresco:drawee:1.13.0 -> 2.0.0 (*)
|         |    \--- com.facebook.fresco:fbcore:1.13.0 -> 2.0.0
|         \--- com.parse.bolts:bolts-tasks:1.4.0
+--- androidx.multidex:multidex:2.0.1
+--- com.facebook.react:react-native:0.60.6 (*)
+--- org.webkit:android-jsc:+ -> r245459
+--- project :@react-native-community_art
|    +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.1.0 (*)
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :@react-native-community_async-storage
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :@react-native-community_netinfo
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    \--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.1.0 (*)
+--- project :@react-native-firebase_analytics
|    +--- project :@react-native-firebase_app
|    |    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    |    +--- com.google.firebase:firebase-bom:21.1.0
|    |    |    +--- com.google.firebase:firebase-analytics:17.0.1 (c)
|    |    |    +--- com.google.firebase:firebase-storage:18.1.1 (c)
|    |    |    +--- com.google.firebase:firebase-messaging:19.0.1 (c)
|    |    |    +--- com.google.firebase:firebase-core:17.0.1 (c)
|    |    |    \--- com.google.firebase:firebase-dynamic-links:18.0.0 (c)
|    |    +--- com.google.firebase:firebase-core -> 17.0.1
|    |    |    \--- com.google.firebase:firebase-analytics:17.0.0 -> 17.0.1
|    |    |         +--- com.google.android.gms:play-services-measurement:17.0.1
|    |    |         |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |         |    +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
|    |    |         |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    +--- com.google.android.gms:play-services-measurement-base:[17.0.1] -> 17.0.1
|    |    |         |    |    \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    +--- com.google.android.gms:play-services-measurement-impl:[17.0.1] -> 17.0.1
|    |    |         |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-ads-identifier:17.0.0
|    |    |         |    |    |    \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-measurement-base:[17.0.1] -> 17.0.1 (*)
|    |    |         |    |    \--- com.google.android.gms:play-services-stats:17.0.0
|    |    |         |    |         +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
|    |    |         |    |         \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    \--- com.google.android.gms:play-services-stats:17.0.0 (*)
|    |    |         +--- com.google.android.gms:play-services-measurement-api:17.0.1
|    |    |         |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    +--- com.google.android.gms:play-services-measurement-base:[17.0.1] -> 17.0.1 (*)
|    |    |         |    +--- com.google.android.gms:play-services-measurement-impl:[17.0.1] -> 17.0.1 (*)
|    |    |         |    +--- com.google.android.gms:play-services-measurement-sdk-api:[17.0.1] -> 17.0.1
|    |    |         |    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    |    \--- com.google.android.gms:play-services-measurement-base:[17.0.1] -> 17.0.1 (*)
|    |    |         |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    |         |    +--- com.google.firebase:firebase-common:18.0.0
|    |    |         |    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    |         |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    |         |    |    \--- com.google.auto.value:auto-value-annotations:1.6.3
|    |    |         |    +--- com.google.firebase:firebase-iid:19.0.0 -> 19.0.1
|    |    |         |    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    |         |    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-stats:17.0.0 (*)
|    |    |         |    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    |         |    |    +--- com.google.firebase:firebase-common:18.0.0 (*)
|    |    |         |    |    \--- com.google.firebase:firebase-iid-interop:17.0.0
|    |    |         |    |         +--- com.google.android.gms:play-services-base:17.0.0 (*)
|    |    |         |    |         \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         |    \--- com.google.firebase:firebase-measurement-connector:18.0.0
|    |    |         |         \--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |         \--- com.google.android.gms:play-services-measurement-sdk:17.0.1
|    |    |              +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    |              +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |              +--- com.google.android.gms:play-services-measurement-base:[17.0.1] -> 17.0.1 (*)
|    |    |              +--- com.google.android.gms:play-services-measurement-impl:[17.0.1] -> 17.0.1 (*)
|    |    |              \--- com.google.android.gms:play-services-measurement-sdk-api:[17.0.1] -> 17.0.1 (*)
|    |    +--- com.google.firebase:firebase-common -> 18.0.0 (*)
|    |    \--- androidx.multidex:multidex:2.0.0 -> 2.0.1
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.google.firebase:firebase-bom:21.1.0 (*)
|    +--- com.google.firebase:firebase-analytics -> 17.0.1 (*)
|    \--- androidx.multidex:multidex:2.0.0 -> 2.0.1
+--- project :@react-native-firebase_app (*)
+--- project :@react-native-firebase_dynamic-links
|    +--- project :@react-native-firebase_app (*)
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.google.firebase:firebase-bom:21.1.0 (*)
|    +--- com.google.firebase:firebase-dynamic-links -> 18.0.0
|    |    +--- com.google.android.gms:play-services-base:17.0.0 (*)
|    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    +--- com.google.firebase:firebase-common:18.0.0 (*)
|    |    \--- com.google.firebase:firebase-measurement-connector:18.0.0 (*)
|    \--- androidx.multidex:multidex:2.0.0 -> 2.0.1
+--- project :@react-native-firebase_messaging
|    +--- project :@react-native-firebase_app (*)
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.google.firebase:firebase-bom:21.1.0 (*)
|    +--- com.google.firebase:firebase-messaging -> 19.0.1
|    |    +--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    +--- com.google.firebase:firebase-common:18.0.0 (*)
|    |    +--- com.google.firebase:firebase-iid:[19.0.1] -> 19.0.1 (*)
|    |    \--- com.google.firebase:firebase-measurement-connector:18.0.0 (*)
|    \--- androidx.multidex:multidex:2.0.0 -> 2.0.1
+--- project :@react-native-firebase_storage
|    +--- project :@react-native-firebase_app (*)
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.google.firebase:firebase-bom:21.1.0 (*)
|    +--- com.google.firebase:firebase-storage -> 18.1.1
|    |    +--- androidx.annotation:annotation:1.1.0
|    |    +--- com.google.android.gms:play-services-base:17.0.0 (*)
|    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    +--- com.google.firebase:firebase-auth-interop:18.0.0
|    |    |    +--- com.google.android.gms:play-services-base:17.0.0 (*)
|    |    |    +--- com.google.android.gms:play-services-basement:17.0.0 (*)
|    |    |    +--- com.google.android.gms:play-services-tasks:17.0.0 (*)
|    |    |    \--- com.google.firebase:firebase-common:18.0.0 (*)
|    |    \--- com.google.firebase:firebase-common:18.0.0 (*)
|    \--- androidx.multidex:multidex:2.0.0 -> 2.0.1
+--- project :bugsnag-react-native
|    +--- com.bugsnag:bugsnag-android:4.20.0
|    |    +--- com.bugsnag:bugsnag-android-core:4.20.0
|    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.21
|    |    |         +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.21
|    |    |         \--- org.jetbrains:annotations:13.0
|    |    +--- com.bugsnag:bugsnag-plugin-android-anr:4.20.0
|    |    |    +--- com.bugsnag:bugsnag-android-core:4.20.0 (*)
|    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.21 (*)
|    |    \--- com.bugsnag:bugsnag-plugin-android-ndk:4.20.0
|    |         +--- com.bugsnag:bugsnag-android-core:4.20.0 (*)
|    |         +--- androidx.annotation:annotation:1.1.0
|    |         \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.21 (*)
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :lottie-react-native
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- androidx.appcompat:appcompat:1.0.0 -> 1.1.0 (*)
|    \--- com.airbnb.android:lottie:3.0.7
|         +--- androidx.appcompat:appcompat:1.0.0 -> 1.1.0 (*)
|         \--- com.squareup.okio:okio:1.17.4
+--- project :react-native-android-open-settings
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-background-timer
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-camera
|    +--- com.google.android.gms:play-services-vision:16.2.0
|    |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |    \--- com.google.android.gms:play-services-vision-common:16.2.0
|    |         +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|    |         +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |         +--- com.google.android.gms:play-services-clearcut:16.0.0
|    |         |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|    |         |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |         |    +--- com.google.android.gms:play-services-phenotype:16.0.0
|    |         |    |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|    |         |    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |         |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|    |         |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|    |         +--- com.google.android.gms:play-services-flags:16.0.1
|    |         |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|    |         |    \--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|    |         \--- com.google.android.gms:play-services-phenotype:16.0.0 (*)
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.google.zxing:core:3.3.3
|    +--- com.drewnoakes:metadata-extractor:2.11.0
|    |    \--- com.adobe.xmp:xmpcore:5.1.3
|    +--- androidx.exifinterface:exifinterface:1.0.0
|    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    \--- androidx.legacy:legacy-support-v4:1.0.0 (*)
+--- project :react-native-config
|    \--- com.facebook.react:react-native:0.60.6 (*)
+--- project :react-native-device-info
|    +--- com.facebook.react:react-native:0.60.6 (*)
|    \--- com.google.android.gms:play-services-iid:16.0.0
|         +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|         +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|         +--- com.google.android.gms:play-services-stats:16.0.1 -> 17.0.0 (*)
|         \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
+--- project :react-native-facebook-account-kit
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- com.android.support:appcompat-v7:28.0.0 -> androidx.appcompat:appcompat:1.1.0 (*)
|    +--- com.android.support:design:28.0.0 -> com.google.android.material:material:1.0.0
|    |    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
|    |    +--- androidx.legacy:legacy-support-core-utils:1.0.0 (*)
|    |    +--- androidx.fragment:fragment:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.transition:transition:1.0.0 -> 1.1.0
|    |    |    +--- androidx.annotation:annotation:1.1.0
|    |    |    +--- androidx.core:core:1.0.1 -> 1.1.0 (*)
|    |    |    \--- androidx.collection:collection:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.appcompat:appcompat:1.0.0 -> 1.1.0 (*)
|    |    +--- androidx.cardview:cardview:1.0.0 (*)
|    |    \--- androidx.recyclerview:recyclerview:1.0.0
|    |         +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |         +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    |         \--- androidx.legacy:legacy-support-core-ui:1.0.0 (*)
|    \--- com.facebook.android:account-kit-sdk:5.0.+ -> 5.0.0
|         +--- com.google.android.gms:play-services-auth-api-phone:16.0.0
|         |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|         |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|         |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|         +--- com.google.android.gms:play-services-auth:16.0.1
|         |    +--- com.google.android.gms:play-services-auth-api-phone:16.0.0 (*)
|         |    +--- com.google.android.gms:play-services-auth-base:16.0.0
|         |    |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|         |    |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|         |    |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|         |    +--- com.google.android.gms:play-services-base:16.0.1 -> 17.0.0 (*)
|         |    +--- com.google.android.gms:play-services-basement:16.0.1 -> 17.0.0 (*)
|         |    \--- com.google.android.gms:play-services-tasks:16.0.1 -> 17.0.0 (*)
|         +--- com.googlecode.libphonenumber:libphonenumber:8.10.1
|         +--- androidx.appcompat:appcompat:1.0.0 -> 1.1.0 (*)
|         +--- com.google.android.material:material:1.0.0 (*)
|         \--- androidx.legacy:legacy-support-v4:1.0.0 (*)
+--- project :react-native-fast-image
|    +--- com.facebook.react:react-native:0.60.6 (*)
|    +--- androidx.core:core:1.0.0 -> 1.1.0 (*)
|    +--- androidx.appcompat:appcompat:1.0.0 -> 1.1.0 (*)
|    +--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    +--- com.github.bumptech.glide:glide:4.9.0
|    |    +--- com.github.bumptech.glide:gifdecoder:4.9.0
|    |    |    \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
|    |    +--- com.github.bumptech.glide:disklrucache:4.9.0
|    |    +--- com.github.bumptech.glide:annotations:4.9.0
|    |    +--- androidx.fragment:fragment:1.0.0 -> 1.1.0 (*)
|    |    \--- androidx.vectordrawable:vectordrawable-animated:1.0.0 -> 1.1.0 (*)
|    +--- com.github.bumptech.glide:annotations:4.9.0
|    \--- com.github.bumptech.glide:okhttp3-integration:4.9.0
|         +--- com.github.bumptech.glide:glide:4.9.0 (*)
|         +--- com.squareup.okhttp3:okhttp:3.9.1 -> 3.12.1 (*)
|         \--- androidx.annotation:annotation:1.0.0 -> 1.1.0
+--- project :react-native-gesture-handler
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-image-picker
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-image-resizer
+--- project :react-native-incall-manager
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-interactable
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-linear-gradient
+--- project :react-native-localization
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-permissions
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-reanimated
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    \--- androidx.transition:transition:1.1.0 (*)
+--- project :react-native-screens
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    +--- androidx.appcompat:appcompat:1.1.0 (*)
|    +--- androidx.coordinatorlayout:coordinatorlayout:1.0.0 (*)
|    \--- com.google.android.material:material:1.0.0 (*)
+--- project :react-native-unlock-device
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-vector-icons
|    \--- com.facebook.react:react-native:0.60.6 (*)
+--- project :react-native-version-check
|    \--- com.facebook.react:react-native:+ -> 0.60.6 (*)
+--- project :react-native-webview
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    \--- org.jetbrains.kotlin:kotlin-stdlib:1.3.11 -> 1.3.21 (*)
+--- project :stringee-react-native
|    +--- com.facebook.react:react-native:+ -> 0.60.6 (*)
|    \--- com.stringee.sdk.android:stringee-android-sdk:1.3.5
\--- androidx.multidex:multidex:2.0.0 -> 2.0.1
@william-normann
Copy link
Author

@jkasten2 I need your help 🆘

@jkasten2
Copy link
Member

jkasten2 commented Nov 5, 2019

@thuan-nguyen-js The error notes react-native-background-geolocation, if you temporarily remove this plugin does your project build? Or do you get an error on the next plugin?

I would recommend removing this section, as it may cause an early evaluation of variants which could be part of the issue.

configurations.all {
    resolutionStrategy {
    }
}

If the above 2 things do not help can you reproduce the issue in a minimum example project? There is a number of things in your build.gradle files that could be part of the issue and isolating the exact cause is key to finding the root of the issue.

@william-normann
Copy link
Author

william-normann commented Nov 5, 2019

@jkasten2 I tried your 2 solutions.

When I tried remove react-native-background-geolocation, build successes. But it is one of our core libraries, can not be remove from dependencies.

When I remove

configurations.all {
    resolutionStrategy {
    }
}

nothing changed. gradle plugin still conflicting with mauron85/react-native-background-geolocation

Same I tWhen I commented apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin' . Build successed.

Update:

This is Repproduce Error Repo: https://github.com/thuan-nguyen-js/reproduce-onesignal-gradle-plugin-error

@william-normann
Copy link
Author

@jkasten2 please take a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants