Skip to content

Unable to resolve Gradle dependencies #2695

@michaelsinatra

Description

@michaelsinatra

Is this a bug report?

Yes

Have you read the Installation Instructions?

Yes

Environment

react-native: 0.57.4
react: 16.6.0-alpha.8af6728
react-native-maps: 0.23.0

Target Platform: Android 9 Emulator, Nexus 5 X

Steps to Reproduce

  1. Follow the installation guide to configure the global settings.gradle and app's build.gradle
  2. Hit the Android Studio Gradle's Sync now button

Expected Behavior

I expect the react-native-maps project to be included in the main project
and all its dependencies to get resolved by Gradle itself.

Actual Behavior

Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-compat:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-annotations:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-utils:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-ui:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-fragment:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-annotations:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-utils:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-fragment:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-compat:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-ui:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-compat:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-utils:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-core-ui:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-fragment:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@debug/compileClasspath': Could not resolve com.android.support:support-annotations:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-compat:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-annotations:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-utils:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-ui:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-fragment:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-annotations:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-utils:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-fragment:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-compat:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-ui:27.1.1.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-compat:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-utils:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-core-ui:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-fragment:25.2.0.
Open File
Show Details


Unable to resolve dependency for ':react-native-maps@release/compileClasspath': Could not resolve com.android.support:support-annotations:25.2.0.
Open File
Show Details

Reproducible Demo

My rootProject variable versions are

ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 27
        targetSdkVersion = 26
        supportLibVersion = "27.1.1"
        googlePlayServicesVersion = "11.8.0"
        androidMapsUtilsVersion = "0.5+"
    }

To reproduce the issue i have placed the above piece of code in my root build.gradle and have followed the installation guide for Android step by step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions