notifee: [Expo] Could not find any matches for app.notifee:core:+ as no versions of app.notifee:core are available.

I tried following the instructions here: https://github.com/invertase/notifee/blob/main/docs-react-native/react-native/docs/installation.md

I tried following the solutions in this thread: https://github.com/invertase/notifee/issues/350

These don’t exist in my gradle- org.gradle.parallel=true org.gradle.configureondemand=true

I tried adding this-

maven {
            url "$rootDir/../node_modules/@notifee/react-native/android/libs"
        }

I tried following the solutions in this thread: https://github.com/invertase/notifee/issues/911

I tried adding this-

"plugins": [
[
"expo-build-properties",
{
"android": {
"extraMavenRepos": [
"../../node_modules/@notifee/react-native/android/libs"
]
}
}
],
}

I am using react native with expo. The error message I’m getting:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find any matches for app.notifee:core:+ as no versions of app.notifee:core are available.
     Searched in the following locations:
       - file:/Users/james/Documents/Workspace/.../apps/mobile/node_modules/@notifee/react-native/android/libs/app/notifee/core/maven-metadata.xml
       - file:/Users/james/Documents/Workspace/.../node_modules/react-native/android/app/notifee/core/maven-metadata.xml
       - file:/Users/james/Documents/Workspace/.../node_modules/jsc-android/dist/app/notifee/core/maven-metadata.xml
       - https://dl.google.com/dl/android/maven2/app/notifee/core/maven-metadata.xml
       - https://repo.maven.apache.org/maven2/app/notifee/core/maven-metadata.xml
       - https://www.jitpack.io/app/notifee/core/maven-metadata.xml
       - https://oss.sonatype.org/content/repositories/snapshots/app/notifee/core/maven-metadata.xml
     Required by:
         project :app > project :notifee_react-native

I am using expo 49, notifee 7.8.2, react native 72.6, api 34 on android

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Reactions: 2
  • Comments: 15 (3 by maintainers)

Most upvoted comments

I was able to fix it by editing my app.json under expo-build properties, I modified the property extraMavenRepos

    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "kotlinVersion": "1.8.0",
            "minSdkVersion": 24,
            "extraMavenRepos": [
              "../../../../node_modules/@notifee/react-native/android/libs"
              ]
          },
          "ios": {
            "deploymentTarget": "13.0"
          }
        }
      ],

I needed to add extra depth to the extraMavenRepos

I was able to fix it by editing my app.json under expo-build properties, I modified the property extraMavenRepos

    "plugins": [
      [
        "expo-build-properties",
        {
          "android": {
            "kotlinVersion": "1.8.0",
            "minSdkVersion": 24,
            "extraMavenRepos": [
              "../../../../node_modules/@notifee/react-native/android/libs"
              ]
          },
          "ios": {
            "deploymentTarget": "13.0"
          }
        }
      ],

I needed to add extra depth to the extraMavenRepos

Thanks, this also resolved my issue - with a slight adjustment to the path:

extraMavenRepos: [
            "../../node_modules/@notifee/react-native/android/libs",
          ],

@coyksdev Thank you!

@LVExMachina your path should start at android/build.gradle. for me it is ‘…/…/node_modules/@notifee/react-native/android/libs’

No I can’t help directly sorry, I don’t use Expo. But it looks like you are attempting to use a fully-qualified path, note the attempts above were with relative paths either to …/…/ etc or rootDir Play around with those until it’s pointing in the right spot where you found the file

You know where the file is The build system is telling you where it is looking Playing with it until those two line up should be possible ?