I install Notifee package using yarn,
yarn add @notifee/react-native
After I run it,
yarn start
yarn run android
Throws an error like this,
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':notifee_react-native:compileDebugJavaWithJavac'.
I'm struggling to implement notifications in my React Native project. Really appreciate it if somebody could help me. Thanks.
As in v 6.0.0 added Android 13 support the compiledSdkVersion and targetSdkVersion should be changed to 33.
In your project android/build.gradle
change,
compileSdkVersion = 33
targetSdkVersion = 33
More reference, https://www.youtube.com/watch?v=Fxzi8Ug9NUA&ab_channel=CodewithMishen