Nubescope / react-native-facebook-account-kit

Facebook Account Kit SDK wrapper for React Native
320 stars 120 forks source link

'com.android.support:appcompat-v7' has different version for the compile (27.1.0) and runtime (27.1.1) classpath #180

Closed ppv94 closed 5 years ago

ppv94 commented 5 years ago

I am trying to implement account-kit in my project, it works fine in Ios but it throws an error in android. My error was

Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:appcompat-v7' has different version for the compile (27.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution

My package.json is:

{
  "name": "myApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/runtime": "^7.2.0",
    "@dudigital/react-native-zoomable-view": "^1.0.11",
    "apollo-cache-inmemory": "^1.3.5",
    "apollo-client": "^2.4.2",
    "apollo-link-http": "^1.5.5",
    "babel-preset-react-native": "^5.0.0",
    "babylon": "^6.18.0",
    "d3-interpolate": "^1.1.6",
    "graphql": "^0.11.7",
    "graphql-tag": "^2.5.0",
    "install": "^0.10.4",
    "lodash": "^4.17.10",
    "lottie-react-native": "^2.3.2",
    "moment": "^2.19.1",
    "native-base": "^2.3.5",
    "npm": "^5.10.0",
    "prop-types": "^15.6.2",
    "ramda": "^0.25.0",
    "react": "^16.4.1",
    "react-apollo": "^2.2.4",
    "react-native": "^0.56.0",
    "react-native-action-button": "^2.8.3",
    "react-native-admob": "^2.0.0-beta.5",
    "react-native-android-permissions": "^1.0.0",
    "react-native-aws3": "0.0.8",
    "react-native-base": "^1.1.0",
    "react-native-cached-image": "^1.4.3",
    "react-native-compress-image": "^2.0.1",
    "react-native-datepicker": "^1.7.2",
    "react-native-deprecated-custom-components": "^0.1.2",
    "react-native-device-info": "^0.26.4",
    "react-native-easy-toast": "^1.1.0",
    "react-native-facebook-account-kit": "^1.1.0",
    "react-native-fbads": "^6.0.2",
    "react-native-fbsdk": "^0.6.3",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-fit-image": "^1.5.4",
    "react-native-flexi-radio-button": "^0.2.2",
    "react-native-fs": "^2.9.11",
    "react-native-gesture-handler": "^1.0.12",
    "react-native-image-crop-picker": "^0.19.2",
    "react-native-image-picker": "^0.26.7",
    "react-native-image-placeholder": "^1.0.14",
    "react-native-image-progress": "^1.1.0",
    "react-native-image-resizer": "^1.0.0",
    "react-native-img-cache": "^1.5.3",
    "react-native-input-scroll-view": "^1.7.2",
    "react-native-keyboard-aware-scrollview": "^2.0.0",
    "react-native-keyboard-spacer": "^0.4.1",
    "react-native-linear-gradient": "^2.4.2",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-material-textfield": "^0.10.0",
    "react-native-modal": "^6.5.0",
    "react-native-modalbox": "^1.4.2",
    "react-native-movable-view": "^1.0.3",
    "react-native-pages": "^0.7.0",
    "react-native-pagination": "^1.2.8",
    "react-native-permissions": "^1.1.1",
    "react-native-pinch-zoom-view": "^0.2.0",
    "react-native-progress": "^3.4.0",
    "react-native-scalable-image": "^0.4.0",
    "react-native-search-filter": "^0.1.4",
    "react-native-share": "^1.1.0",
    "react-native-side-menu": "^1.1.3",
    "react-native-simple-radio-button": "^2.7.1",
    "react-native-simple-store": "^1.3.0",
    "react-native-slider": "^0.11.0",
    "react-native-snap-carousel": "^3.7.0",
    "react-native-super-grid": "^2.3.1",
    "react-native-svg": "^5.4.1",
    "react-native-tab-view": "^0.0.78",
    "react-native-tag-autocomplete": "^1.0.19",
    "react-native-user-avatar": "^1.0.3",
    "react-native-vector-icons": "^6.1.0",
    "react-native-view-shot": "^2.4.0",
    "react-native-webp": "^0.3.1",
    "react-native-youtube": "^1.1.0",
    "react-navigation": "^2.18.0",
    "react-redux": "^5.0.7",
    "recyclerlistview": "^1.2.6",
    "redux": "^4.0.0"
  },
  "devDependencies": {
    "babel-jest": "21.0.2",
    "eslint": "^4.19.1",
    "eslint-config-google": "^0.9.1",
    "jest": "21.1.0",
    "react-test-renderer": "^16.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}
jpgarcia commented 5 years ago

Hi @ppv94 this is not a library issue. It seems you have some conflicts with you Android dependencies

Please check my suggestion here => https://github.com/underscopeio/react-native-facebook-account-kit/issues/157#issuecomment-423949726