So I was working with RN 0.59 it worked just fine then I started a new project with RN 0.60 and implemented everything in the same way then now when I try to run my app in Android Studio I get this message:
Task :react-native-firebase:compileDebugJavaWithJavac FAILED /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/ReactNativeFirebaseAppRegistrar.java:20: error: package android.support.annotation does not exist import android.support.annotation.Keep; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/ReactNativeFirebaseAppRegistrar.java:29: error: cannot find symbol @Keep ^ symbol: class Keep /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:3: error: package android.support.annotation does not exist import android.support.annotation.RequiresPermission; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:7: error: cannot find symbol import android.support.v4.app.NotificationManagerCompat; ^ symbol: class NotificationManagerCompat location: package android.support.v4.app /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:8: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:5: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:8: error: cannot find symbol import android.support.v4.app.RemoteInput; ^ symbol: class RemoteInput location: package android.support.v4.app /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:10: error: cannot find symbol import android.support.v4.app.RemoteInput; ^ symbol: class RemoteInput location: package android.support.v4.app /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:11: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:20: error: package android.support.annotation does not exist import android.support.annotation.RequiresApi; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:21: error: package android.support.v4.content does not exist import android.support.v4.content.LocalBroadcastManager; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:15: error: cannot find symbol import android.support.v4.app.NotificationCompat; ^ symbol: class NotificationCompat location: package android.support.v4.app /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:16: error: cannot find symbol import android.support.v4.app.RemoteInput; ^ symbol: class RemoteInput location: package android.support.v4.app /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:407: error: package NotificationCompat does not exist private NotificationCompat.Action createAction( ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:494: error: cannot find symbol private RemoteInput createRemoteInput(Bundle remoteInput) { ^ symbol: class RemoteInput location: class DisplayNotificationTask /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:3: error: package android.support.annotation does not exist import android.support.annotation.RequiresPermission; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/storage/RNFirebaseStoragePackage.java:17: error: cannot find symbol @RequiresPermission( ^ symbol: class RequiresPermission location: class RNFirebaseStoragePackage /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:370: error: cannot find symbol @RequiresApi(api = 26) ^ symbol: class RequiresApi location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:384: error: cannot find symbol @RequiresApi(api = 26) ^ symbol: class RequiresApi location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:398: error: cannot find symbol @RequiresApi(api = 26) ^ symbol: class RequiresApi location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:414: error: cannot find symbol @RequiresApi(api = 26) ^ symbol: class RequiresApi location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:457: error: cannot find symbol @RequiresApi(api = 26) ^ symbol: class RequiresApi location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/analytics/RNFirebaseAnalyticsPackage.java:17: error: cannot find symbol @RequiresPermission( ^ symbol: class RequiresPermission location: class RNFirebaseAnalyticsPackage /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context); ^ symbol: class LocalBroadcastManager location: class RNFirebaseMessaging /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:36: error: cannot find symbol LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context); ^ symbol: variable LocalBroadcastManager location: class RNFirebaseMessaging /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessaging.java:90: error: cannot find symbol Boolean enabled = NotificationManagerCompat ^ symbol: variable NotificationManagerCompat location: class RNFirebaseMessaging /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:26: error: cannot find symbol LocalBroadcastManager ^ symbol: variable LocalBroadcastManager location: class RNFirebaseMessagingService /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:41: error: cannot find symbol LocalBroadcastManager ^ symbol: variable LocalBroadcastManager location: class RNFirebaseMessagingService /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/messaging/RNFirebaseMessagingService.java:51: error: cannot find symbol LocalBroadcastManager ^ symbol: variable LocalBroadcastManager location: class RNFirebaseMessagingService /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseBackgroundNotificationActionReceiver.java:62: error: cannot find symbol Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); ^ symbol: variable RemoteInput location: class RNFirebaseBackgroundNotificationActionReceiver /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context); ^ symbol: class LocalBroadcastManager location: class RNFirebaseNotifications /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:54: error: cannot find symbol LocalBroadcastManager localBroadcastManager = LocalBroadcastManager.getInstance(context); ^ symbol: variable LocalBroadcastManager location: class RNFirebaseNotifications /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotifications.java:308: error: cannot find symbol Bundle remoteInput = RemoteInput.getResultsFromIntent(intent); ^ symbol: variable RemoteInput location: class RNFirebaseNotifications /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/RNFirebaseNotificationManager.java:204: error: cannot find symbol LocalBroadcastManager ^ symbol: variable LocalBroadcastManager location: class RNFirebaseNotificationManager /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:81: error: package NotificationCompat does not exist NotificationCompat.Builder nb; ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:84: error: package NotificationCompat does not exist nb = new NotificationCompat.Builder(context, channelId); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:87: error: package NotificationCompat does not exist nb = new NotificationCompat.Builder(context); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle(); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:130: error: package NotificationCompat does not exist NotificationCompat.BigPictureStyle bp = new NotificationCompat.BigPictureStyle(); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:158: error: package NotificationCompat does not exist NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle(); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:158: error: package NotificationCompat does not exist NotificationCompat.BigTextStyle bt = new NotificationCompat.BigTextStyle(); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:361: error: package NotificationCompat does not exist NotificationCompat.Action action = createAction(context, a, intentClass, notification); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:424: error: package NotificationCompat.Action does not exist NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder( ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:424: error: package NotificationCompat.Action does not exist NotificationCompat.Action.Builder ab = new NotificationCompat.Action.Builder( ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:437: error: cannot find symbol RemoteInput remoteInput = createRemoteInput(ri); ^ symbol: class RemoteInput location: class DisplayNotificationTask /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:496: error: package RemoteInput does not exist RemoteInput.Builder rb = new RemoteInput.Builder(resultKey); ^ /Users/kiralymark/Desktop/morzsa/node_modules/react-native-firebase/android/src/main/java/io/invertase/firebase/notifications/DisplayNotificationTask.java:496: error: package RemoteInput does not exist RemoteInput.Builder rb = new RemoteInput.Builder(resultKey); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 47 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':react-native-firebase:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
I imported everything as the docs said. Anyone had the same issue? I looked for answers anywhere but none of them was clear.