Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed #860

Open
BaseMax opened this issue Dec 21, 2023 · 18 comments

Comments

@BaseMax
Copy link

BaseMax commented Dec 21, 2023

C:\Users\MAX\Projects\ReactNative4>npm run android

> [email protected] android
> react-native run-android

warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
info Starting JS server...
info Installing the app...
<-------------> 0% CONFIGURING [21s]

And

C:\Users\MAX\Projects\ReactNative4>npx react-native config
{
  "root": "C:\\Users\\MAX\\Projects\\ReactNative4",
  "reactNativePath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native",
  "reactNativeVersion": "0.72",
  "dependencies": {
    "@notifee/react-native": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@notifee\\react-native",
      "name": "@notifee/react-native",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@notifee\\react-native\\RNNotifee.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@notifee\\react-native\\android",
          "packageImportPath": "import io.invertase.notifee.NotifeePackage;",
          "packageInstance": "new NotifeePackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@notifee/react-native/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@react-native-async-storage/async-storage": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-async-storage\\async-storage",
      "name": "@react-native-async-storage/async-storage",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-async-storage\\async-storage\\RNCAsyncStorage.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-async-storage\\async-storage\\android",
          "packageImportPath": "import com.reactnativecommunity.asyncstorage.AsyncStoragePackage;",
          "packageInstance": "new AsyncStoragePackage()",
          "buildTypes": [],
          "libraryName": "rnasyncstorage",
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@react-native-community/netinfo": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-community\\netinfo",
      "name": "@react-native-community/netinfo",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-community\\netinfo\\react-native-netinfo.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-community\\netinfo\\android",
          "packageImportPath": "import com.reactnativecommunity.netinfo.NetInfoPackage;",
          "packageInstance": "new NetInfoPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@react-native-firebase/app": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\app",
      "name": "@react-native-firebase/app",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\app\\RNFBApp.podspec",
          "configurations": [],
          "scriptPhases": [
            {
              "name": "[RNFB] Core Configuration",
              "path": "./ios_config.sh",
              "execution_position": "after_compile",
              "input_files": [
                "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)"
              ]
            }
          ]
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\app\\android",
          "packageImportPath": "import io.invertase.firebase.app.ReactNativeFirebaseAppPackage;",
          "packageInstance": "new ReactNativeFirebaseAppPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@react-native-firebase/app/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@react-native-firebase/crashlytics": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\crashlytics",
      "name": "@react-native-firebase/crashlytics",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\crashlytics\\RNFBCrashlytics.podspec",
          "configurations": [],
          "scriptPhases": [
            {
              "name": "[RNFB] Crashlytics Configuration",
              "path": "./ios_config.sh",
              "execution_position": "after_compile",
              "input_files": [
                "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
                "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)"
              ]
            }
          ]
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\crashlytics\\android",
          "packageImportPath": "import io.invertase.firebase.crashlytics.ReactNativeFirebaseCrashlyticsPackage;",
          "packageInstance": "new ReactNativeFirebaseCrashlyticsPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@react-native-firebase/crashlytics/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@react-native-firebase/messaging": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\messaging",
      "name": "@react-native-firebase/messaging",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\messaging\\RNFBMessaging.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@react-native-firebase\\messaging\\android",
          "packageImportPath": "import io.invertase.firebase.messaging.ReactNativeFirebaseMessagingPackage;",
          "packageInstance": "new ReactNativeFirebaseMessagingPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@react-native-firebase/messaging/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "@shopify/flash-list": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@shopify\\flash-list",
      "name": "@shopify/flash-list",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@shopify\\flash-list\\RNFlashList.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\@shopify\\flash-list\\android",
          "packageImportPath": "import com.shopify.reactnative.flash_list.ReactNativeFlashListPackage;",
          "packageInstance": "new ReactNativeFlashListPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/@shopify/flash-list/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-camera-kit": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-camera-kit",
      "name": "react-native-camera-kit",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-camera-kit\\ReactNativeCameraKit.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-camera-kit\\android",
          "packageImportPath": "import com.rncamerakit.RNCameraKitPackage;",
          "packageInstance": "new RNCameraKitPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-camera-kit/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-device-info": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-device-info",
      "name": "react-native-device-info",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-device-info\\RNDeviceInfo.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-device-info\\android",
          "packageImportPath": "import com.learnium.RNDeviceInfo.RNDeviceInfo;",
          "packageInstance": "new RNDeviceInfo()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-device-info/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-inappbrowser-reborn": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-inappbrowser-reborn",
      "name": "react-native-inappbrowser-reborn",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-inappbrowser-reborn\\RNInAppBrowser.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-inappbrowser-reborn\\android",
          "packageImportPath": "import com.proyecto26.inappbrowser.RNInAppBrowserPackage;",
          "packageInstance": "new RNInAppBrowserPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-inappbrowser-reborn/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-pager-view": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-pager-view",
      "name": "react-native-pager-view",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-pager-view\\react-native-pager-view.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-pager-view\\android",
          "packageImportPath": "import com.reactnativepagerview.PagerViewPackage;",
          "packageInstance": "new PagerViewPackage()",
          "buildTypes": [],
          "libraryName": "RNCViewPager",
          "componentDescriptors": [
            "RNCViewPagerComponentDescriptor"
          ],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-pager-view/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-permissions": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-permissions",
      "name": "react-native-permissions",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-permissions\\RNPermissions.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-permissions\\android",
          "packageImportPath": "import com.zoontek.rnpermissions.RNPermissionsPackage;",
          "packageInstance": "new RNPermissionsPackage()",
          "buildTypes": [],
          "libraryName": "rnpermissions",
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-permissions/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-push-notification": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-push-notification",
      "name": "react-native-push-notification",
      "platforms": {
        "ios": null,
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-push-notification\\android",
          "packageImportPath": "import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;",
          "packageInstance": "new ReactNativePushNotificationPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-push-notification/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-safe-area-context": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-safe-area-context",
      "name": "react-native-safe-area-context",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-safe-area-context\\react-native-safe-area-context.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-safe-area-context\\android",
          "packageImportPath": "import com.th3rdwave.safeareacontext.SafeAreaContextPackage;",
          "packageInstance": "new SafeAreaContextPackage()",
          "buildTypes": [],
          "libraryName": "safeareacontext",
          "componentDescriptors": [
            "RNCSafeAreaProviderComponentDescriptor",
            "RNCSafeAreaViewComponentDescriptor"
          ],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-safe-area-context/android/src/main/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-screens": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-screens",
      "name": "react-native-screens",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-screens\\RNScreens.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-screens\\android",
          "packageImportPath": "import com.swmansion.rnscreens.RNScreensPackage;",
          "packageInstance": "new RNScreensPackage()",
          "buildTypes": [],
          "libraryName": "rnscreens",
          "componentDescriptors": [
            "RNSFullWindowOverlayComponentDescriptor",
            "RNSScreenContainerComponentDescriptor",
            "RNSScreenNavigationContainerComponentDescriptor",
            "RNSScreenStackHeaderConfigComponentDescriptor",
            "RNSScreenStackHeaderSubviewComponentDescriptor",
            "RNSScreenStackComponentDescriptor",
            "RNSSearchBarComponentDescriptor",
            "RNSScreenComponentDescriptor"
          ],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-screens/android/src/main/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-splash-screen": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-splash-screen",
      "name": "react-native-splash-screen",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-splash-screen\\react-native-splash-screen.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-splash-screen\\android",
          "packageImportPath": "import org.devio.rn.splashscreen.SplashScreenReactPackage;",
          "packageInstance": "new SplashScreenReactPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-splash-screen/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "react-native-svg": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-svg",
      "name": "react-native-svg",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-svg\\RNSVG.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\react-native-svg\\android",
          "packageImportPath": "import com.horcrux.svg.SvgPackage;",
          "packageInstance": "new SvgPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/react-native-svg/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    },
    "rn-fetch-blob": {
      "root": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\rn-fetch-blob",
      "name": "rn-fetch-blob",
      "platforms": {
        "ios": {
          "podspecPath": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\rn-fetch-blob\\rn-fetch-blob.podspec",
          "configurations": [],
          "scriptPhases": []
        },
        "android": {
          "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\node_modules\\rn-fetch-blob\\android",
          "packageImportPath": "import com.RNFetchBlob.RNFetchBlobPackage;",
          "packageInstance": "new RNFetchBlobPackage()",
          "buildTypes": [],
          "componentDescriptors": [],
          "cmakeListsPath": "C:/Users/MAX/Projects/ReactNative4/node_modules/rn-fetch-blob/android/build/generated/source/codegen/jni/CMakeLists.txt"
        }
      }
    }
  },
  "commands": [
    {
      "name": "log-ios",
      "description": "starts iOS device syslog tail",
      "options": [
        {
          "name": "--interactive",
          "description": "Explicitly select simulator to tail logs from. By default it will tail logs from the first booted and available simulator."
        }
      ]
    },
    {
      "name": "run-ios",
      "description": "builds your app and starts it on iOS simulator",
      "examples": [
        {
          "desc": "Run on a different simulator, e.g. iPhone SE (2nd generation)",
          "cmd": "react-native run-ios --simulator \"iPhone SE (2nd generation)\""
        },
        {
          "desc": "Run on a connected device, e.g. Max's iPhone",
          "cmd": "react-native run-ios --device \"Max's iPhone\""
        },
        {
          "desc": "Run on the AppleTV simulator",
          "cmd": "react-native run-ios --simulator \"Apple TV\"  --scheme \"helloworld-tvOS\""
        }
      ],
      "options": [
        {
          "name": "--simulator <string>",
          "description": "Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: \"iPhone 6 (10.0)\""
        },
        {
          "name": "--mode <string>",
          "description": "Explicitly set the scheme configuration to use. This option is case sensitive."
        },
        {
          "name": "--configuration <string>",
          "description": "[Deprecated] Explicitly set the scheme configuration to use"
        },
        {
          "name": "--scheme <string>",
          "description": "Explicitly set Xcode scheme to use"
        },
        {
          "name": "--device [string]",
          "description": "Explicitly set device to use by name.  The value is not required if you have a single device connected."
        },
        {
          "name": "--destination <string>",
          "description": "Explicitly extend distination e.g. \"arch=x86_64\""
        },
        {
          "name": "--udid <string>",
          "description": "Explicitly set device to use by udid"
        },
        {
          "name": "--verbose",
          "description": "Do not use xcbeautify or xcpretty even if installed"
        },
        {
          "name": "--port <number>",
          "default": 8081
        },
        {
          "name": "--terminal <string>",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path."
        },
        {
          "name": "--xcconfig [string]",
          "description": "Explicitly set xcconfig to use"
        },
        {
          "name": "--buildFolder <string>",
          "description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\"."
        },
        {
          "name": "--extra-params <string>",
          "description": "Custom params that will be passed to xcodebuild command."
        },
        {
          "name": "--no-packager",
          "description": "Do not launch packager while building"
        },
        {
          "name": "--binary-path <string>",
          "description": "Path relative to project root where pre-built .app binary lives."
        },
        {
          "name": "--list-devices",
          "description": "List all available iOS devices and simulators and let you choose one to run the app. "
        },
        {
          "name": "--interactive",
          "description": "Explicitly select which scheme and configuration to use before running a build and select device to run the application."
        }
      ]
    },
    {
      "name": "build-ios",
      "description": "builds your app on iOS simulator",
      "examples": [
        {
          "desc": "Build the app for the IOS simulator",
          "cmd": "react-native build-ios"
        },
        {
          "desc": "Build the app for all IOS devices",
          "cmd": "react-native build-ios --mode \"Release\""
        },
        {
          "desc": "Build the app for a specific IOS device",
          "cmd": "react-native build-ios --simulator \"IPhone 11\""
        }
      ],
      "options": [
        {
          "name": "--simulator <string>",
          "description": "Explicitly set simulator to use. Optionally include iOS version between parenthesis at the end to match an exact version: \"iPhone 6 (10.0)\""
        },
        {
          "name": "--mode <string>",
          "description": "Explicitly set the scheme configuration to use. This option is case sensitive."
        },
        {
          "name": "--configuration <string>",
          "description": "[Deprecated] Explicitly set the scheme configuration to use"
        },
        {
          "name": "--scheme <string>",
          "description": "Explicitly set Xcode scheme to use"
        },
        {
          "name": "--device [string]",
          "description": "Explicitly set device to use by name.  The value is not required if you have a single device connected."
        },
        {
          "name": "--destination <string>",
          "description": "Explicitly extend distination e.g. \"arch=x86_64\""
        },
        {
          "name": "--udid <string>",
          "description": "Explicitly set device to use by udid"
        },
        {
          "name": "--verbose",
          "description": "Do not use xcbeautify or xcpretty even if installed"
        },
        {
          "name": "--port <number>",
          "default": 8081
        },
        {
          "name": "--terminal <string>",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path."
        },
        {
          "name": "--xcconfig [string]",
          "description": "Explicitly set xcconfig to use"
        },
        {
          "name": "--buildFolder <string>",
          "description": "Location for iOS build artifacts. Corresponds to Xcode's \"-derivedDataPath\"."
        },
        {
          "name": "--extra-params <string>",
          "description": "Custom params that will be passed to xcodebuild command."
        },
        {
          "name": "--interactive",
          "description": "Explicitly select which scheme and configuration to use before running a build"
        }
      ]
    },
    {
      "name": "log-android",
      "description": "starts logkitty"
    },
    {
      "name": "run-android",
      "description": "builds your app and starts it on a connected Android emulator or device",
      "options": [
        {
          "name": "--mode <string>",
          "description": "Specify your app's build variant"
        },
        {
          "name": "--variant <string>",
          "description": "Specify your app's build variant. Deprecated! Use 'mode' instead"
        },
        {
          "name": "--no-packager",
          "description": "Do not launch packager while building"
        },
        {
          "name": "--port <number>",
          "default": 8081
        },
        {
          "name": "--terminal <string>",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path."
        },
        {
          "name": "--tasks <list>",
          "description": "Run custom Gradle tasks. By default it's \"assembleDebug\". Will override passed mode and variant arguments."
        },
        {
          "name": "--active-arch-only",
          "description": "Build native libraries only for the current device architecture for debug builds.",
          "default": false
        },
        {
          "name": "--extra-params <string>",
          "description": "Custom params passed to gradle build command"
        },
        {
          "name": "--interactive",
          "description": "Explicitly select build type and flavour to use before running a build"
        },
        {
          "name": "--appId <string>",
          "description": "Specify an applicationId to launch after build. If not specified, `package` from AndroidManifest.xml will be used.",
          "default": ""
        },
        {
          "name": "--appIdSuffix <string>",
          "description": "Specify an applicationIdSuffix to launch after build.",
          "default": ""
        },
        {
          "name": "--main-activity <string>",
          "description": "Name of the activity to start",
          "default": "MainActivity"
        },
        {
          "name": "--deviceId <string>",
          "description": "builds your app and starts it on a specific device/simulator with the given device id (listed by running \"adb devices\" on the command line)."
        },
        {
          "name": "--list-devices",
          "description": "Lists all available Android devices and simulators and let you choose one to run the app",
          "default": false
        },
        {
          "name": "--binary-path <string>",
          "description": "Path relative to project root where pre-built .apk binary lives."
        },
        {
          "name": "--user <number>",
          "description": "Id of the User Profile you want to install the app on."
        }
      ]
    },
    {
      "name": "build-android",
      "description": "builds your app",
      "options": [
        {
          "name": "--mode <string>",
          "description": "Specify your app's build variant"
        },
        {
          "name": "--variant <string>",
          "description": "Specify your app's build variant. Deprecated! Use 'mode' instead"
        },
        {
          "name": "--no-packager",
          "description": "Do not launch packager while building"
        },
        {
          "name": "--port <number>",
          "default": 8081
        },
        {
          "name": "--terminal <string>",
          "description": "Launches the Metro Bundler in a new window using the specified terminal path."
        },
        {
          "name": "--tasks <list>",
          "description": "Run custom Gradle tasks. By default it's \"assembleDebug\". Will override passed mode and variant arguments."
        },
        {
          "name": "--active-arch-only",
          "description": "Build native libraries only for the current device architecture for debug builds.",
          "default": false
        },
        {
          "name": "--extra-params <string>",
          "description": "Custom params passed to gradle build command"
        },
        {
          "name": "--interactive",
          "description": "Explicitly select build type and flavour to use before running a build"
        }
      ]
    }
  ],
  "healthChecks": [],
  "platforms": {
    "ios": {},
    "android": {}
  },
  "project": {
    "ios": {
      "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\ios",
      "xcodeProject": {
        "name": "NOTA.xcworkspace",
        "isWorkspace": true
      }
    },
    "android": {
      "sourceDir": "C:\\Users\\MAX\\Projects\\ReactNative4\\android",
      "appName": "app",
      "packageName": "com.mytestapp.client",
      "unstable_reactLegacyComponentNames": []
    }
  }
}

``
@BaseMax BaseMax changed the title warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. Warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed Dec 21, 2023
@ilanRosenbaum
Copy link

I also have this issue

1 similar comment
@siomar
Copy link

siomar commented Feb 20, 2024

I also have this issue

@luhaimin
Copy link

Will maintenance personnel make modifications when encountering the same problem

@Elozino
Copy link

Elozino commented Mar 1, 2024

Will maintenance personnel make modifications when encountering the same problem

There's is a fix saying you should go into its node_module folder and delete react-native-config.js file

@aurangs7
Copy link

aurangs7 commented Apr 5, 2024

any update for this?

@Elozino
Copy link

Elozino commented Apr 5, 2024

any update for this?

Hi @aurangs7 kindly use react native blob util package instead.

@Rasan1212
Copy link

any solution ?

@gkasireddy202
Copy link

Any update on this?

@ApocalyptoRun
Copy link

facing same issue

@lauraversocke
Copy link

Same, any update on this?

@Lobovem
Copy link

Lobovem commented May 17, 2024

Will maintenance personnel make modifications when encountering the same problem

There's is a fix saying you should go into its node_module folder and delete react-native-config.js file

this is work a way

@garryjstech
Copy link

any solution??

@Indra-poudel
Copy link

any updates on this ?

@KozerT
Copy link

KozerT commented Aug 24, 2024

Any solution ?

1 similar comment
@ogundogdu
Copy link

Any solution ?

@wesvh
Copy link

wesvh commented Oct 19, 2024

Hello everyone, we have resolved this issue, and it all boiled down to the fact that jCenter() as a repository in the build.gradle file could not find certain dependencies. When trying to compile to release, it would fail with that error that has been mentioned frequently.

Along with this, I tried modifying the build.gradle file by removing jCenter() and replacing it with mavenCentral().

This now allows me to compile and use the library correctly.

With that, I have this patch package that you can use.

Create this folder at the root with this file: patches/rn-fetch-blob+0.12.0.patch

Install patch-package as a dev dependency in your project and add it to the postinstall script in your package.json file.

diff --git a/node_modules/rn-fetch-blob/android/build.gradle b/node_modules/rn-fetch-blob/android/build.gradle
index a4ca7a4..d2527c7 100644
--- a/node_modules/rn-fetch-blob/android/build.gradle
+++ b/node_modules/rn-fetch-blob/android/build.gradle
@@ -6,13 +6,12 @@ def safeExtGet(prop, fallback) {
 
 repositories {
 mavenCentral()
- jcenter()
 google()
 }
 
 buildscript {
 repositories {
- jcenter()
+ mavenCentral()
 google()
 }
 dependencies {

rn-fetch-blob+0.12.0.patch

@NikolasPetriti
Copy link

Hello everyone, we have resolved this issue, and it all boiled down to the fact that jCenter() as a repository in the build.gradle file could not find certain dependencies. When trying to compile to release, it would fail with that error that has been mentioned frequently.

Along with this, I tried modifying the build.gradle file by removing jCenter() and replacing it with mavenCentral().

This now allows me to compile and use the library correctly.

With that, I have this patch package that you can use.

Create this folder at the root with this file: patches/rn-fetch-blob+0.12.0.patch

Install patch-package as a dev dependency in your project and add it to the postinstall script in your package.json file.

diff --git a/node_modules/rn-fetch-blob/android/build.gradle b/node_modules/rn-fetch-blob/android/build.gradle
index a4ca7a4..d2527c7 100644
--- a/node_modules/rn-fetch-blob/android/build.gradle
+++ b/node_modules/rn-fetch-blob/android/build.gradle
@@ -6,13 +6,12 @@ def safeExtGet(prop, fallback) {
 
 repositories {
 mavenCentral()
- jcenter()
 google()
 }
 
 buildscript {
 repositories {
- jcenter()
+ mavenCentral()
 google()
 }
 dependencies {

rn-fetch-blob+0.12.0.patch

can you be a bit more clear

@wesvh
Copy link

wesvh commented Oct 21, 2024

Hello everyone, we have resolved this issue, and it all boiled down to the fact that jCenter() as a repository in the build.gradle file could not find certain dependencies. When trying to compile to release, it would fail with that error that has been mentioned frequently.
Along with this, I tried modifying the build.gradle file by removing jCenter() and replacing it with mavenCentral().
This now allows me to compile and use the library correctly.
With that, I have this patch package that you can use.
Create this folder at the root with this file: patches/rn-fetch-blob+0.12.0.patch
Install patch-package as a dev dependency in your project and add it to the postinstall script in your package.json file.

diff --git a/node_modules/rn-fetch-blob/android/build.gradle b/node_modules/rn-fetch-blob/android/build.gradle
index a4ca7a4..d2527c7 100644
--- a/node_modules/rn-fetch-blob/android/build.gradle
+++ b/node_modules/rn-fetch-blob/android/build.gradle
@@ -6,13 +6,12 @@ def safeExtGet(prop, fallback) {
 
 repositories {
 mavenCentral()
- jcenter()
 google()
 }
 
 buildscript {
 repositories {
- jcenter()
+ mavenCentral()
 google()
 }
 dependencies {

rn-fetch-blob+0.12.0.patch

can you be a bit more clear

Sure, in what step specifically?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests