This repository was archived by the owner on Jan 14, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2k
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
🔥When updating 3.4 to 3.5, unable to compile Android #1449
Copy link
Copy link
Closed
Description
Bug
When upgrading from 3.4 to 3.5 I am unable to compile on Android.
This is what I am getting:
> Task :react-native-push-notification:compileReleaseJavaWithJavac FAILED
/Users/waltermonecke/Documents/Code/React-Native2/moodPixel/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationListenerService.java:9: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/waltermonecke/Documents/Code/React-Native2/moodPixel/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNReceivedMessageHandler.java:13: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/waltermonecke/Documents/Code/React-Native2/moodPixel/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNReceivedMessageHandler.java:35: error: cannot find symbol
public RNReceivedMessageHandler(@NonNull FirebaseMessagingService service) {
^
symbol: class NonNull
location: class RNReceivedMessageHandler
Note: /Users/waltermonecke/Documents/Code/React-Native2/moodPixel/node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
Environment info
"react-native": "0.60.4",
"react-native-push-notification": "^3.5.0",
Metadata
Metadata
Assignees
Labels
No labels