javaandroidreact-nativegradlegradle-wrapper

how to solve 'void com.facebook.react.uimanager.ViewManagerDelegate.setPropertyandroid.view.View, java.lang.String, java.lang.Object)'


I got the error after upgrade my react native app 0.74.1 to 0.79.1, i didnt got any details log of this error

Attempt to invoke interface method 'void com.facebook.react.uimanager. ViewManagerDeleg ate.setProperty(android.view.View, java.lang.String, java.lang.Object)' on a null object reference

my package.json file

{
  "name": "Fin1",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android:dev": "ENVFILE=./env/.env.dev npx react-native run-android --mode=devDebug --appIdSuffix=dev",
    "android:prod": "ENVFILE=./env/.env.prod npx react-native run-android --mode=prodDebug",
    "android:prodBundle": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew bundleProdRelease",
    "android:prodApk": "cd android && ENVFILE=./env/.env.prod ./gradlew clean && ./gradlew assembleProdRelease",
    "android:devRelease": "cd android && ENVFILE=./env/.env.dev ./gradlew clean && ./gradlew assembleDevRelease",
    "android:devDebugApk": "cd android && ENVFILE=./env/.env.dev ./gradlew clean && ./gradlew assembleDevDebug",
    "ios:dev": "ENVFILE=./env/.env.dev react-native run-ios --scheme \"Fin1Dev\" --mode \"Dev.Debug\"",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "repo:cleanup": "rm -rf node_modules & rm -rf yarn.lock & yarn install & cd ios & rm -rf Podfile.lock & pod install & cd ..",
    "android:winDev": "set \"ENVFILE=./env/.env.dev\" && npx react-native run-android --mode=devDebug --appIdSuffix=dev",
    "android:winProd": "set \"ENVFILE=./env/.env.prod\" && npx react-native run-android --mode=prodDebug",
    "postinstall": "patch-package && pod-install",
    "openDebugger": "npx react-native start --experimental-debugger"
  },
  "dependencies": {
    "@invertase/react-native-apple-authentication": "^2.4.0",
    "@native-html/iframe-plugin": "^2.6.1",
    "@native-html/table-plugin": "^5.3.1",
    "@react-native-async-storage/async-storage": "^2.1.1",
    "@react-native-community/datetimepicker": "^8.3.0",
    "@react-native-community/netinfo": "^11.4.1",
    "@react-native-community/slider": "^4.5.6",
    "@react-native-documents/picker": "^10.1.0",
    "@react-native-firebase/analytics": "^21.14.0",
    "@react-native-firebase/app": "^21.14.0",
    "@react-native-firebase/crashlytics": "^21.14.0",
    "@react-native-firebase/dynamic-links": "^21.14.0",
    "@react-native-firebase/messaging": "^21.14.0",
    "@react-native-firebase/perf": "^21.14.0",
    "@react-native-google-signin/google-signin": "^11.0.1",
    "@react-native-masked-view/masked-view": "^0.3.1",
    "@react-navigation/bottom-tabs": "^6.6.1",
    "@react-navigation/drawer": "^6.7.2",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/stack": "^6.4.1",
    "@shopify/flash-list": "^1.7.3",
    "axios": "^1.7.9",
    "lottie-react-native": "^7.2.2",
    "react": "19.0.0",
    "react-native": "0.79.1",
    "react-native-animatable": "^1.4.0",
    "react-native-audio-recorder-player": "^3.6.12",
    "react-native-cashfree-pg-sdk": "^2.1.18",
    "react-native-circular-progress": "^1.4.1",
    "react-native-config": "^1.5.3",
    "react-native-deck-swiper": "^2.0.17",
    "react-native-device-info": "^13.0.0",
    "react-native-element-dropdown": "^2.12.1",
    "react-native-email-link": "^1.16.1",
    "react-native-exception-handler": "^2.10.10",
    "react-native-fbsdk-next": "^13.4.1",
    "react-native-file-viewer": "^2.1.5",
    "react-native-flash-message": "^0.4.2",
    "react-native-fs": "^2.20.0",
    "react-native-gesture-handler": "^2.25.0",
    "react-native-gifted-charts": "^1.4.41 ",
    "react-native-hyperlink": "^0.0.22",
    "react-native-image-crop-picker": "^0.41.4",
    "react-native-image-zoom-viewer": "^3.0.1",
    "react-native-in-app-review": "^4.3.3",
    "react-native-linear-gradient": "^2.8.3",
    "react-native-modal": "^13.0.1",
    "react-native-modal-datetime-picker": "^18.0.0",
    "react-native-offline": "^6.0.2",
    "react-native-orientation-locker": "^1.7.0",
    "react-native-paper": "^5.12.5",
    "react-native-pell-rich-editor": "^1.9.0",
    "react-native-play-install-referrer": "^1.1.8",
    "react-native-progress": "^5.0.1",
    "react-native-razorpay": "^2.3.0",
    "react-native-reanimated": "^3.17.4",
    "react-native-reanimated-carousel": "^4.0.2",
    "react-native-render-html": "^6.3.4",
    "react-native-restart": "^0.0.27",
    "react-native-safe-area-context": "^5.3.0",
    "react-native-screens": "^4.9.2",
    "react-native-share": "^12.0.3",
    "react-native-shimmer-placeholder": "^2.0.9",
    "react-native-sms-retriever": "^1.1.1",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^15.11.2",
    "react-native-swipe-gestures": "^1.0.5",
    "react-native-swipeable-rating": "^0.2.1",
    "react-native-swiper-flatlist": "^3.2.5",
    "react-native-vector-icons": "^10.2.0",
    "react-native-video": "^6.12.0",
    "react-native-webview": "^13.13.2",
    "react-native-youtube-iframe": "^2.3.0",
    "react-navigation-backhandler": "^2.0.3",
    "react-redux": "^9.1.2",
    "recyclerlistview": "^4.2.1",
    "redux": "^5.0.1",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^3.1.0",
    "vdocipher-rn-bridge": "^1.21.2"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@babel/preset-env": "^7.25.3",
    "@babel/runtime": "^7.25.0",
    "@react-native-community/cli": "18.0.0",
    "@react-native-community/cli-platform-android": "18.0.0",
    "@react-native-community/cli-platform-ios": "18.0.0",
    "@react-native/babel-preset": "0.79.1",
    "@react-native/eslint-config": "0.79.1",
    "@react-native/metro-config": "0.79.1",
    "@react-native/typescript-config": "0.79.1",
    "@types/jest": "^29.5.13",
    "@types/react": "^19.0.0",
    "@types/react-test-renderer": "^19.0.0",
    "eslint": "^8.57.0",
    "jest": "^29.6.3",
    "patch-package": "^8.0.0",
    "pod-install": "0.2.0",
    "prettier": "2.8.8",
    "react-test-renderer": "19.0.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

gradle-wrapper-properties.js

distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

enter image description here


Solution

  • You need to update react-native-safe-area-context and rebuild your app (https://github.com/AppAndFlow/react-native-safe-area-context/pull/610)