react-native-progress-view / progress-bar-android

ProgressBar Component for react-native Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android studio gradle sync failing

stef1103 opened this issue · comments

After adding progress-bar-android to package.json the android studio gradle sync feature is failing.
If I remove progress-bar-android, gradle sync is working fine.

Gradle sync output

Gradle sync failed: Sync failed: reason unknown (15 s 95 ms)

Package.json

Package.json

{
  "name": "MyApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx",
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.13.4",
    "@react-native-community/netinfo": "^6.0.0",
    "@react-native-community/progress-bar-android": "^1.0.4",
    "@react-native-community/progress-view": "^1.2.4",
    "@react-native-firebase/analytics": "^12.1.0",
    "@react-native-firebase/app": "^12.1.0",
    "@react-native-masked-view/masked-view": "^0.2.4",
    "@react-native-picker/picker": "^1.9.11",
    "@react-navigation/drawer": "^5.12.3",
    "@react-navigation/native": "^5.8.10",
    "@react-navigation/stack": "^5.12.8",
    "@types/react-native-snap-carousel": "^3.8.2",
    "axios": "^0.21.1",
    "jwt-decode": "^3.1.2",
    "moment": "^2.29.1",
    "react": "16.13.1",
    "react-native": "0.63.4",
    "react-native-app-auth": "^6.2.0",
    "react-native-bootsplash": "^3.1.2",
    "react-native-gesture-handler": "^1.9.0",
    "react-native-pdf": "^6.3.0",
    "react-native-picker-select": "^8.0.4",
    "react-native-popup-menu": "^0.15.10",
    "react-native-reanimated": "^1.13.2",
    "react-native-render-html": "^5.1.0",
    "react-native-safe-area-context": "^3.1.9",
    "react-native-screens": "^2.16.1",
    "react-native-skeleton-placeholder": "^4.0.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^12.1.0",
    "react-native-svg-transformer": "^0.14.3",
    "react-native-toast-message": "^1.4.9",
    "react-native-video": "^5.1.1",
    "rn-fetch-blob": "^0.12.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.4",
    "@babel/runtime": "^7.8.4",
    "@react-native-community/eslint-config": "^1.1.0",
    "@types/jest": "^25.2.3",
    "@types/react-native": "^0.63.2",
    "@types/react-test-renderer": "^16.9.2",
    "babel-jest": "^25.1.0",
    "eslint": "^6.5.1",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-test-renderer": "16.13.1",
    "typescript": "^3.8.3"
  },
  "resolutions": {
    "@types/react": "^16"
  },
  "jest": {
    "preset": "react-native",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ]
  }
}

Manage to resolve it. Apparently the reason was the gradle version I was usyng