-
Notifications
You must be signed in to change notification settings - Fork 206
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
[Expo] Could not find any matches for app.notifee:core:+ as no versions of app.notifee:core are available. #941
Comments
Pathing issue perhaps It helpfully tells you where it's looking, for example:
What do you find when you actually look there yourself? Where is the notifee/core/maven-metadata.xml file? If you locate it and make sure that location is in the extra repos, should work... |
Nvm it's actually NOT searching the correct folder it should be file:/Users/james/Documents/Workspace/Ultraviolet/ultraviolet-next/node_modules/@notifee/react-native/android/libs/app/notifee/core/maven-metadata.xml How do I configure it to search that appropriate path? |
I tried adding this to my repositories, but its still not finding it
|
I tried editing again by specifying the version and updated the maven url. Can you please point me how to fix this The new error
Gradle to specified version dependency and updated maven url
|
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 You know where the file is |
I was able to fix it by editing my app.json under expo-build properties, I modified the property extraMavenRepos
I needed to add extra depth to the extraMavenRepos |
@jp4u that is applicable if you are, for instance, in a monorepo and the package was hoisted. Makes sense I think |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
Thanks, this also resolved my issue - with a slight adjustment to the path:
|
I tried but I still have the same problem... |
I have this same issue with expo 50 even though I added the extraMavenRepos update: it is now working, I just fixed the path |
@coyksdev How did you fixed the path? It's not working for me :( |
@LVExMachina your path should start at android/build.gradle. for me it is '../../node_modules/@notifee/react-native/android/libs' |
@coyksdev Thank you! |
Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
Thank you for your contributions. |
I'm feeling a little dumb for making it too complex. I came out with a plugin and a whole bunch of regex nonsense. At least it works const { withProjectBuildGradle } = require("@expo/config-plugins");
function addNotifeeLibs(buildGradle) {
const notifeeLibs = 'url(new File("../../node_modules/@notifee/react-native/android/libs"))';
if (buildGradle.includes(notifeeLibs)) return buildGradle;
const mavenRegex = /(maven\s*{[^{}]*})/s;
const match = buildGradle.match(mavenRegex);
if (!match) throw Error("Maven repositories not found");
const block = match[0];
const modifiedBlock =
block.slice(0, -1) +
`
\t\t// Keep this dependecy bellow React Native sources
\t\t${notifeeLibs}
\t}
`;
return buildGradle.replace(block, modifiedBlock);
}
module.exports = function withNotifeeGradlePlugin(config) {
return withProjectBuildGradle(config, (config) => {
config.modResults.contents = addNotifeeLibs(config.modResults.contents);
return config;
});
}; |
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:
#350
These don't exist in my gradle-
org.gradle.parallel=true
org.gradle.configureondemand=true
I tried adding this-
I tried following the solutions in this thread:
#911
I tried adding this-
I am using react native with expo. The error message I'm getting:
I am using expo 49, notifee 7.8.2, react native 72.6, api 34 on android
The text was updated successfully, but these errors were encountered: