Closed jeffreybenabou closed 1 month ago
Fix it remove this line: org.gradle.configureondemand=true from gradle.properties
Fix it remove this line: org.gradle.configureondemand=true from gradle.properties
i dont have that line and it keeps showing that error :|
What is your version of notifee?
What is your version of notifee?
7.8.0
7.8.2 Update to this version
7.8.2 Update to this version
worked 💯 thanks
still getting this in 7.8.2
I'm also getting the same error in 7.8.2
Android gradle plugin: 8.2.1
Gradle: 8.8
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all 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:
- https://oss.sonatype.org/content/repositories/snapshots/app/notifee/core/maven-metadata.xml
- https://repo.maven.apache.org/maven2/app/notifee/core/maven-metadata.xml
- file:<PROJECT_PATH>/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://www.jitpack.io/app/notifee/core/maven-metadata.xml
- file:<PROJECT_PATH>/node_modules/react-native/android/app/notifee/core/maven-metadata.xml
Required by:
project :app > project :notifee_react-native
And if I add @notifee/react-native
into the plugins
list:
The npx expo prebuild
output
CommandError: Package "@notifee/react-native" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
Cannot use import statement outside a module
I'm also seeing this issue using 7.8.2, anyone have a fix?
After upgrading to this version: 7.8.2 Maybe try to: remove all node_modules and yarn.lock (or any .lock) file you have,
after this try to reinstall node_modules then: npm install && npm start -- --reset-cache or yarn install && react-native start --reset-cache
So, I tried the following and I'm getting another error:
rm -rf node_modules
rm -rf android
npm i
npx expo prebuild --clean
npx expo start -c
Then I pres a
to open in in the android emulator.
Once I do that I get the following error: ERROR Error: Notifee native module not found., js engine: hermes
And if I add @notifee/react-native
in the plugins
config, I get this:
CommandError: Package "@notifee/react-native" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
Cannot use import statement outside a module
Any updates on this? I'm not being able to use this library, and it's in a fresh expo project
Thanks again for the support :)
I don't use expo so I don't know if there are custom steps you need to do in order to add the internal repository with our core library .aar file into the gradle build via expo.
With bare react-native it works fine though, and I have never reproduced this error with the current module
The current versions of the module automatically add the internal repository with our core library to the list of repositories here:
https://github.com/invertase/notifee/blob/main/packages/react-native/android/build.gradle#L112-L117
Perhaps something in your build system is manipulating that list after the fact, or causing that code not to execute?
That's the curious thing, I don't have any custom code for it, only Expo :)
I'm using Expo without versioning the native folders, https://docs.expo.dev/workflow/prebuild/ So it is entirely built by Expo
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?
This issue will be closed in 15 days if no further activity occurs.
Thank you for your contributions.
Still an issue for me, on a fresh expo project trying to build for Android.
still an issue for me as well using 7.8.2
[RUN_GRADLEW] Gradle: 8.8
[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Could not determine the dependencies of task ':app:processDebugResources'.
[RUN_GRADLEW] > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
[RUN_GRADLEW] >
[RUN_GRADLEW] Could not find any matches for app.notifee:core:+ as no versions of app.notifee:core are available.
[RUN_GRADLEW] Searched in the following locations:
[RUN_GRADLEW] - https://oss.sonatype.org/content/repositories/snapshots/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] - https://repo.maven.apache.org/maven2/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] - file:/private/var/folders/nl/12c07hgn79z126lnmc5zrk2m0000gn/T/eas-build-local-nodejs/2d749d8a-dc81-4378-9df0-a45300febe62/build/node_modules/jsc-android/dist/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] - https://dl.google.com/dl/android/maven2/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] - https://www.jitpack.io/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] - file:/private/var/folders/nl/12c07hgn79z126lnmc5zrk2m0000gn/T/eas-build-local-nodejs/2d749d8a-dc81-4378-9df0-a45300febe62/build/node_modules/react-native/android/app/notifee/core/maven-metadata.xml
[RUN_GRADLEW] Required by:
[RUN_GRADLEW] project :app > project :notifee_react-native
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 1m 9s
[RUN_GRADLEW] 20 actionable tasks: 20 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
running the build on eas server worked for me.
Error: FAILURE: Build failed with an exception.
package.json
{ "name": "", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest", "update-app": "xx", "build-apk": "cd android && ./gradlew clean && yarn android --mode release" }, "dependencies": { "@invertase/react-native-apple-authentication": "^2.3.0", "@notifee/react-native": "7.8.2", "@react-native-async-storage/async-storage": "^1.21.0", "@react-native-community/geolocation": "^3.2.1", "@react-native-community/push-notification-ios": "^1.11.0", "@react-native-firebase/analytics": "^18.7.3", "@react-native-firebase/app": "^18.7.3", "@react-native-firebase/auth": "^18.7.3", "@react-native-firebase/firestore": "^18.7.3", "@react-native-firebase/functions": "^18.7.3", "@react-native-firebase/messaging": "^18.8.0", "@react-native-google-signin/google-signin": "^11.0.0", "@react-native-masked-view/masked-view": "^0.3.1", "@react-native-menu/menu": "^1.1.2", "@react-navigation/bottom-tabs": "^6.5.11", "@react-navigation/drawer": "^6.6.6", "@react-navigation/native": "^6.1.9", "@react-navigation/native-stack": "^6.9.17", "@react-navigation/stack": "^6.3.20", "@reduxjs/toolkit": "^2.0.1", "@rneui/base": "^4.0.0-rc.8", "@rneui/themed": "^4.0.0-rc.8", "@types/rn-fetch-blob": "^1.2.7", "axios": "^1.6.5", "date-fns": "^3.3.1", "lodash": "^4.17.21", "lottie-react-native": "^6.5.1", "react": "18.2.0", "react-moment": "^1.1.3", "react-native": "0.73.4", "react-native-animatable": "^1.4.0", "react-native-calendars": "^1.1304.1", "react-native-circular-progress": "^1.3.9", "react-native-code-push": "^8.3.0", "react-native-contacts": "^7.0.8", "react-native-date-picker": "^4.3.5", "react-native-element-dropdown": "^2.12.0", "react-native-gesture-handler": "^2.14.0", "react-native-gifted-charts": "^1.4.9", "react-native-google-mobile-ads": "^14.2.0", "react-native-image-picker": "^7.1.2", "react-native-linear-gradient": "^2.8.3", "react-native-localization": "^2.3.2", "react-native-localize": "^3.2.0", "react-native-pager-view": "^6.2.3", "react-native-permissions": "^4.1.5", "react-native-push-notification": "^8.1.1", "react-native-reanimated": "^3.6.1", "react-native-safe-area-context": "^4.8.2", "react-native-screens": "3.29.0", "react-native-star-rating-widget": "^1.8.0", "react-native-svg": "^14.1.0", "react-native-swiper-flatlist": "^3.2.4", "react-native-tab-view": "^3.5.2", "react-native-vector-icons": "^10.0.3", "react-native-webview": "^13.10.5", "react-redux": "^9.0.4", "redux": "^5.0.1", "rn-fetch-blob": "^0.12.0" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.73.21", "@react-native/eslint-config": "0.73.2", "@react-native/metro-config": "0.73.5", "@react-native/typescript-config": "0.73.1", "@types/react": "^18.2.6", "@types/react-native-vector-icons": "^6.4.18", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" }, "overrides": { "@rneui/themed": { "@rneui/base": "4.0.0-rc.8" } } }