notifee: cannot find symbol NotifeeApiModule.java:245 REQUEST_CODE_NOTIFICATION_PERMISSION
Hello, Thanks a lot for your awesome library. I just installed the 6.0.0 because I wanted to be compliant with the permissions on android 13 but I am facing a problem.
Indeed it looks like something is missing in the notifee library, when building I have the error :
node_modules/@notifee/react-native/android/src/main/java/io/invertase/notifee/NotifeeApiModule.java:245: error: cannot find symbol
Notifee.REQUEST_CODE_NOTIFICATION_PERMISSION,
^
symbol: variable REQUEST_CODE_NOTIFICATION_PERMISSION
location: class Notifee
From my package.json :
"react-native": "0.68.3",
"@notifee/react-native": "6.0.0",
From my build.gradle:
buildToolsVersion = "33.0.0"
compileSdkVersion = 33
targetSdkVersion = 33
dependencies {
classpath("com.android.tools.build:gradle:7.1.1")
Thanks !
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 5
- Comments: 22 (5 by maintainers)
is your compileSdkVersion set to 33?
No, currently it’s like that
Should I update?
EDIT Thanks @helenaford, I updated my compileSdkVersion and worked!!!
Fixed with v7.0.1. Thanks all for you help with reporting the issue.
Hi i am using v6.0.0, react-native:- 0.72.6 buildToolsVersion = “33.0.0” minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33
still getting a same error. Can you help me out this!
By using v7.8.6 facing issue with iOS. Firebase notification is not triggering. Firebase notification in iOS is working with v6.0.0. So i am using v6.0.0 but it is not working in android. In android i am getting error REQUEST_CODE_NOTIFICATION_PERMISSION Please check this https://github.com/invertase/react-native-firebase/issues/6915#issuecomment-1482550511
@helenaford I updated to
7.0.1
and I’m getting this error now:Before update I already had this error and the one described by @CharlieBreval.
Do you know if they’re related?
This error occurs when I run
npx react-native run-android
Had gotten this issue, but upgrading compileSdkVersion = 33 solved it in 7.0.1, thanks @helenaford
Big thanks @helenaford
@helenaford I’m using v7.0.1 and compiledSdkVersion =33 but still getting a similiar error buildscript { ext { buildToolsVersion = “33.0.0” minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33
}
Thank you, @helenaford. Setting compileSdkVersion = 33 fixed the issue
Yes, as part of that later versions in the 5.x.x series, we removed the requirement to alter your build.gradles and add the local directory as a maven repository. Without the directory added in build.gradle, the core aar file cannot be found until that change https://notifee.app/react-native/docs/release-notes - 5.3.0 and a fix in 5.7.0