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

Faild to build: Unresolved reference: wix #1057

Open
Walker-00 opened this issue Dec 8, 2024 · 2 comments
Open

Faild to build: Unresolved reference: wix #1057

Walker-00 opened this issue Dec 8, 2024 · 2 comments

Comments

@Walker-00
Copy link

I have already installed the lib with both npm install --save react-native-notifications and yarn add react-native-notifications but when after I add the import com.wix.reactnativenotifications.RNNotificationsPackage I got error that says

[RUN_GRADLEW] e: file:///home/walker/gradle_log/walker/eas-build-local-nodejs/a75981f4-f425-4842-8179-ec813288bbe3/build/kargate/android/app/src/main/java/site/kargate/site/MainApplication.kt:16:12 Unresolved reference: wix
[RUN_GRADLEW] > Task :react-native-mmkv:configureCMakeRelWithDebInfo[x86]
[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Execution failed for task ':app:compileReleaseKotlin'.
[RUN_GRADLEW] > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
[RUN_GRADLEW] > Compilation error. See log for more details
[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 2m 47s
[RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[RUN_GRADLEW] For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
[RUN_GRADLEW] 595 actionable tasks: 595 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
npx exited with non-zero code: 1
Error: build command failed.

I have tried this lib like 3 weeks ago in that time it worked, but what is wrong with this.

I have search everything I can but no help.

@mauricior
Copy link

mauricior commented Dec 11, 2024

I had the same error, I solved following the step 4 and 5 from here:

https://wix.github.io/react-native-notifications/docs/installation-android

On the step 4 I didn't added 'implementation 'com.google.firebase:firebase-core:16.0.0'' neither the apply plugin, because I don't want to use FCM, just local notifications.

@Walker-00
Copy link
Author

I also tried to add those steps, even though I just needed local notification even after that still not working, so I just switched to expo-notifications's schedule notifications.

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

2 participants