繁体   English   中英

需要:project :react-native-maps 找不到满足版本约束的“com.android.support:support-compat”版本

[英]Required by:project :react-native-maps Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints

我正在使用 react-native 和 react-native-map 创建一个应用程序。 以下是软件包的版本

"react": "16.8.3",
"react-native": "0.59.0",
"react-native-maps": "^0.23.0",

我只是在关注文档,但收到主题行中指定的错误,我试图验证但没有运气

Could not resolve com.android.support:support-compat:26.1.0.
Required by:
    project :react-native-maps
   Cannot find a version of 'com.android.support:support-compat' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-compat:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-compat:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-compat:28.0.0'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-compat' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0

Could not resolve com.android.support:support-annotations:26.1.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:collections:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:cursoradapter:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-vector-drawable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'com.android.support:versionedparcelable:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:documentfile:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:localbroadcastmanager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:print:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'android.arch.lifecycle:viewmodel:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-media-compat:26.1.0' --> 'com.android.support:support-annotations:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:customview:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:viewpager:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:coordinatorlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:drawerlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:slidingpanelayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:interpolator:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:swiperefreshlayout:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:asynclayoutinflater:28.0.0' --> 'com.android.support:support-annotations:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-annotations' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0

Could not resolve android.arch.lifecycle:runtime:1.0.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'android.arch.lifecycle:runtime' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:runtime' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve android.arch.lifecycle:common:1.0.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'android.arch.lifecycle:common' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.lifecycle:common:1.1.1'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.lifecycle:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve android.arch.core:common:1.0.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'android.arch.core:common' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-compat:28.0.0' --> 'android.arch.lifecycle:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:common:1.1.1'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'android.arch.core:common:1.1.1'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.lifecycle:livedata-core:1.1.1' --> 'android.arch.core:common:1.1.1'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'android.arch.core:common' strictly '1.0.0' because of the following reason: debugRuntimeClasspath uses version 1.0.0

Could not resolve com.android.support:support-core-utils:26.1.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'com.android.support:support-core-utils' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-utils:26.1.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0' --> 'com.android.support:support-core-utils:28.0.0'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-utils' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0

Could not resolve com.android.support:support-core-ui:26.1.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'com.android.support:support-core-ui' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:animated-vector-drawable:28.0.0' --> 'com.android.support:support-core-ui:28.0.0'
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.google.android.gms:play-services-base:15.0.1' --> 'com.google.android.gms:play-services-basement:15.0.1' --> 'com.android.support:support-v4:26.1.0' --> 'com.android.support:support-core-ui:26.1.0'
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-ui' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
      Constraint path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.android.support:support-core-ui' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0

Could not resolve com.android.support:support-fragment:26.1.0.
Required by:
    project :react-native-maps
    Cannot find a version of 'com.android.support:support-fragment' that satisfies the version constraints:
      Dependency path 'ReactFlexNativeBaseTaxi:react-native-maps:unspecified' --> 'com.facebook.react:react-native:0.59.0' --> 'com.android.support:appcompat-v7:28.0.0' --> 'com.android.support:support-fragment:28.0.0'

这是目前已知的问题 检查依赖项的 repo 以查看是否存在问题总是值得的。

根据线程中的这个答案

下个版本会修复它!

如果你们更喜欢锁定特定的提交,你可以使用当前的提交:

如果您更新package.json以使react-native-maps看起来像这样并重新运行npm install (删除您的 node_modules 后),它应该可以解决问题。

"react-native-maps": "https://github.com/react-native-community/react-native-maps.git#c102c36d895cbef8b6a8deefd4c58fb0dc17638e",

如果没有,那么您将不得不等待下一个版本的发布。


根据线程上的答案之一,您可能还需要遵循此 SO 问题中的解决方案。

您可以将google-play-services更新到版本16.1.0或添加

<uses-library
      android:name="org.apache.http.legacy"
      android:required="false" />

AndroidManifest.xmlapplication标签内。

我能够通过安装特定版本(即npm i react-native-maps@0.27.1 )来解决。 像魅力一样工作。

以下是我的根 build.gradle 的样子。

ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
        playServicesVersion = "17.0.0"
        androidMapsUtilsVersion = "1.3.1"
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM