react-native-maps: Problem with installation
Hi I have problem with installation react-native-maps in my project I make everything from instructions step by step, I tried every thing from Stackoverflow but nothing help My error
* What went wrong:
Could not determine the dependencies of task ':react-native-maps:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-maps:debugCompileClasspath'.
> Could not resolve com.android.support:appcompat-v7:26.1.0.
Required by:
project :react-native-maps
> Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.60.0' --> 'androidx.appcompat:appcompat:1.0.2'
> Could not resolve androidx.appcompat:appcompat:{strictly 1.0.0}.
Required by:
project :react-native-maps
> Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.60.0' --> 'androidx.appcompat:appcompat:1.0.2'
> Could not resolve androidx.core:core:{strictly 1.0.0}.
Required by:
project :react-native-maps
> Cannot find a version of 'androidx.core:core' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.core:core:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.media:media:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.core:core:1.0.0'
> Could not resolve androidx.vectordrawable:vectordrawable:{strictly 1.0.0}.
Required by:
project :react-native-maps
> Cannot find a version of 'androidx.vectordrawable:vectordrawable' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.vectordrawable:vectordrawable:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.0'
> Could not resolve androidx.appcompat:appcompat:1.0.2.
Required by:
project :react-native-maps > com.facebook.react:react-native:0.60.0
> Cannot find a version of 'androidx.appcompat:appcompat' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'com.android.support:appcompat-v7:26.1.0' because of the following reason: ENABLE_JETIFIER is enabled
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.60.0' --> 'androidx.appcompat:appcompat:1.0.2'
> Could not resolve androidx.core:core:1.0.1.
Required by:
project :react-native-maps > androidx.appcompat:appcompat:1.0.2
> Cannot find a version of 'androidx.core:core' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.core:core:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.media:media:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.core:core:1.0.0'
> Could not resolve androidx.vectordrawable:vectordrawable:1.0.1.
Required by:
project :react-native-maps > androidx.appcompat:appcompat:1.0.2
> Cannot find a version of 'androidx.vectordrawable:vectordrawable' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.vectordrawable:vectordrawable:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.0'
> Could not resolve androidx.core:core:1.0.0.
Required by:
project :react-native-maps > androidx.legacy:legacy-support-core-utils:1.0.0
project :react-native-maps > androidx.fragment:fragment:1.0.0
project :react-native-maps > androidx.vectordrawable:vectordrawable:1.0.1
project :react-native-maps > androidx.legacy:legacy-support-v4:1.0.0
project :react-native-maps > androidx.loader:loader:1.0.0
project :react-native-maps > androidx.legacy:legacy-support-core-ui:1.0.0
project :react-native-maps > androidx.media:media:1.0.0
project :react-native-maps > androidx.customview:customview:1.0.0
project :react-native-maps > androidx.viewpager:viewpager:1.0.0
project :react-native-maps > androidx.coordinatorlayout:coordinatorlayout:1.0.0
project :react-native-maps > androidx.drawerlayout:drawerlayout:1.0.0
project :react-native-maps > androidx.slidingpanelayout:slidingpanelayout:1.0.0
project :react-native-maps > androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
project :react-native-maps > androidx.asynclayoutinflater:asynclayoutinflater:1.0.0
> Cannot find a version of 'androidx.core:core' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.core:core:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.core:core:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.legacy:legacy-support-core-utils:1.0.0' --> 'androidx.loader:loader:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:16.1.0' --> 'com.google.android.gms:play-services-basement:16.2.0' --> 'androidx.legacy:legacy-support-v4:1.0.0' --> 'androidx.media:media:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.customview:customview:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.viewpager:viewpager:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.coordinatorlayout:coordinatorlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.drawerlayout:drawerlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.slidingpanelayout:slidingpanelayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' --> 'androidx.core:core:1.0.0'
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.fragment:fragment:1.0.0' --> 'androidx.legacy:legacy-support-core-ui:1.0.0' --> 'androidx.asynclayoutinflater:asynclayoutinflater:1.0.0' --> 'androidx.core:core:1.0.0'
> Could not resolve androidx.vectordrawable:vectordrawable:1.0.0.
Required by:
project :react-native-maps > androidx.vectordrawable:vectordrawable-animated:1.0.0
> Cannot find a version of 'androidx.vectordrawable:vectordrawable' that satisfies the version constraints:
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable:1.0.1'
Constraint path 'App:react-native-maps:unspecified' --> 'androidx.vectordrawable:vectordrawable:{strictly 1.0.0}' because of the following reason: debugRuntimeClasspath uses version 1.0.0
Dependency path 'App:react-native-maps:unspecified' --> 'androidx.appcompat:appcompat:1.0.2' --> 'androidx.vectordrawable:vectordrawable-animated:1.0.0' --> 'androidx.vectordrawable:vectordrawable:1.0.0'
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 6s
This is my react-native info
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 18.73 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.3 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.10.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
npmGlobalPackages:
react-native-cli: 2.0.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 10
- Comments: 16 (1 by maintainers)
as a temporary solution:-
-open node_modules/react-native-maps/lib/android/build.gradle
compileOnly('com.facebook.react:react-native:+')change it toimplementation('com.facebook.react:react-native:+')Solved the problem
Please use the master version, it has a fix for jettify to work
upgrade to react-native-maps 0.25.0 fixed my issue where above fix is merged.
It is happening with upgrading to 0.60 and with a fresh
react-native init ProjectHey.
I downloaded react-native-maps from master but now I have this error