invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

Have a issues [ notifee_react-native:compileDebugHavaWithJavac ] #1012

Closed AruAram closed 7 months ago

AruAram commented 8 months ago

Notifee Issues

Hello everyone who's reading this. Please reply if you know how I can solve the following problem.

I'm just starting to learn react-native. I hope your answers will help me find the issue.

I created a new React-Native project npx react-native init test_rn_notifee_project then instaled the Notifee npm install --save @notifee/react-native and then using the project run command as stated in the Notifee documentation.npx react-native run-android

I am connecting my phone using scrapy. (usb debugging). it connected remotely using the adb connect.

node v. 20.11.1 OpenJDK v 21.0.2 RN v. 0.73.5 Notifee v. 7.8.2

So. I have an isuess see pic. attached. 311671839-a4710534-232d-4dc5-bf50-0e508ae49e53

Also i tried use expo. i did all like in documentation, but the project just not started. In the internet i find the answer about that issue. it says there I need to remove the following lines from the file app.json

{
"plugins": [
    "@notifee/react-native"
  ]
}

after that the project started but I received the error notifee native module not found

mr. @mikehardy It is a clean and new project without any changes in to the app.js and any else file. I did all like in the documentation. and i can't understand what is the problem.

samin commented 8 months ago

Notifee requires JDK 11 to run (https://notifee.app/react-native/docs/installation#expo-support), which is a bummer for me because Expo SDK 50 requires JDK 17 (https://expo.dev/changelog/2024/01-18-sdk-50#notable-breaking-changes)

image

In your case, you specified OpenJDK 21 so you should probably downgrade to 11.

github-actions[bot] commented 7 months ago

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.

mikehardy commented 7 months ago

note that in my experience JDK17 is just fine for notifee

DeepSwami commented 6 months ago

Notifee Issues

Hello everyone who's reading this. Please reply if you know how I can solve the following problem.

I'm just starting to learn react-native. I hope your answers will help me find the issue.

I created a new React-Native project npx react-native init test_rn_notifee_project then instaled the Notifee npm install --save @notifee/react-native and then using the project run command as stated in the Notifee documentation.npx react-native run-android

I am connecting my phone using scrapy. (usb debugging). it connected remotely using the adb connect.

node v. 20.11.1 OpenJDK v 21.0.2 RN v. 0.73.5 Notifee v. 7.8.2

So. I have an isuess see pic. attached. 311671839-a4710534-232d-4dc5-bf50-0e508ae49e53

Also i tried use expo. i did all like in documentation, but the project just not started. In the internet i find the answer about that issue. it says there I need to remove the following lines from the file app.json

{
"plugins": [
    "@notifee/react-native"
  ]
}

after that the project started but I received the error notifee native module not found

mr. @mikehardy It is a clean and new project without any changes in to the app.js and any else file. I did all like in the documentation. and i can't understand what is the problem.

Hi @AruAram, I have a similar setup and encountered the same issue. Could you please guide me on how you resolved it?