找不到满足版本限制的'com.android.support:appcompat-v7'版本

时间:2019-03-09 21:00:30

标签: android react-native

当我尝试在Android Studio中编译我的应用程序时,“ react-native-geolocation-service”出现问题。

  Cannot find a version of 'com.android.support:appcompat-v7' that satisfies the version constraints: 
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
   Constraint path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
   Constraint path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
   Constraint path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
   Constraint path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7' strictly '26.1.0' because of the following reason: debugRuntimeClasspath uses version 26.1.0
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
   Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.facebook.react:react-native:0.57.8' --> 'com.android.support:appcompat-v7:27.1.1'

我的android / app / build.gradle

dependencies {
compile project(':react-native-simple-compass')
compile project(':react-native-heading')
compile project(':react-native-geolocation-service')
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.facebook.react:react-native:+'
implementation project(':arcore_client') // remove this if AR not required
implementation project(':gvr_common')
implementation project(path: ':viro_renderer')
implementation project(path: ':react_viro')
implementation 'com.google.android.exoplayer:exoplayer:2.7.1'
implementation 'com.google.protobuf.nano:protobuf-javanano:3.0.0-alpha-7'
implementation 'com.amazonaws:aws-android-sdk-core:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-ddb-mapper:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.7.7'
implementation 'com.amazonaws:aws-android-sdk-cognitoidentityprovider:2.7.7' }

我遵循了react-native-geolocation-service文档here,但是仅当我包含此库时,才会出现此错误。

我认为错误在于

  

实现'com.android.support:appcompat-v7:28.0.0'

但是我怕改变它。

感谢我的帮助。

0 个答案:

没有答案