React-native dependency error (com.atlassian.mobile.video okhttp-ws-compat)

后端 未结 6 2002
走了就别回头了
走了就别回头了 2020-12-28 15:07

I\'m developing a React-native app and all of a sudden I started getting the following error:

  • What went wrong: A problem occurred configurin
6条回答
  •  抹茶落季
    2020-12-28 15:41

    In your build.gradle (not in android/app/build.gradle) add this lines to force all dependency to react-native to specific version:

    allprojects {
    
        configurations.all {
            resolutionStrategy {
                eachDependency { DependencyResolveDetails details ->
                    if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {
                        details.useVersion "0.39.0" // Your real React Native version here
                    }
                }
            }
        }
    ...
    }
    

    This configuration worked for me. I hope this will help.

提交回复
热议问题