Ionic 6 Cordova Not Building with cordova-plugin-local-notification

Hi,

I have installed Local Notification plugin from https://www.npmjs.com/package/@ionic-native/local-notifications.

When I try to build the project using ionic cordova build android I am getting the below error:

> Task :app:compileDebugJavaWithJavac
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:33: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:34: error: package android.support.v4.util does not exist
import android.support.v4.util.ArraySet;
                              ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:35: error: package android.support.v4.util does not exist
import android.support.v4.util.Pair;
                              ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:52: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MAX;
                                    ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:52: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MAX;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:53: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MIN;
                                    ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:53: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_MIN;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:79: error: package NotificationCompat does not exist
    private static SparseArray<NotificationCompat.Builder> cache = null;
                                                 ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:28: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:29: error: package android.support.v4.app.NotificationCompat.MessagingStyle does not exist
import android.support.v4.app.NotificationCompat.MessagingStyle.Message;
                                                               ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:44: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_LIGHTS;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:44: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_LIGHTS;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:45: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_SOUND;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:45: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_SOUND;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:46: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.DEFAULT_VIBRATE;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:46: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.DEFAULT_VIBRATE;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:47: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.PRIORITY_MAX;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:47: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.PRIORITY_MAX;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:48: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.PRIORITY_MIN;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:48: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.PRIORITY_MIN;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:49: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.VISIBILITY_PUBLIC;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:49: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.VISIBILITY_PUBLIC;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:50: error: cannot find symbol
import static android.support.v4.app.NotificationCompat.VISIBILITY_SECRET;
                                    ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:50: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationCompat.VISIBILITY_SECRET;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:88: error: package NotificationCompat does not exist
    private final NotificationCompat.Builder builder;
                                    ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:97: error: package NotificationCompat does not exist
    Notification (Context context, Options options, NotificationCompat.Builder builder) {
                                                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:446: error: package NotificationCompat does not exist
    static NotificationCompat.Builder getCachedBuilder (int key) {
                             ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:25: error: cannot find symbol
import android.support.v4.app.RemoteInput;
                             ^
  symbol:   class RemoteInput
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:606: error: cannot find symbol
    Message[] getMessages() {
    ^
  symbol:   class Message
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:111: error: cannot find symbol
    public RemoteInput getInput() {
           ^
  symbol:   class RemoteInput
  location: class Action
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\localnotification\ClickReceiver.java:25: error: cannot find symbol
import android.support.v4.app.RemoteInput;
                             ^
  symbol:   class RemoteInput
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:30: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
                             ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:44: error: cannot find symbol
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_DEFAULT;
                                    ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:44: error: static import only from classes and interfaces
import static android.support.v4.app.NotificationManagerCompat.IMPORTANCE_DEFAULT;
^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:413: error: cannot find symbol
    private NotificationManagerCompat getNotCompMgr() {
            ^
  symbol:   class NotificationManagerCompat
  location: class Manager
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:30: error: cannot find symbol
import android.support.v4.app.NotificationCompat;
                             ^
  symbol:   class NotificationCompat
  location: package android.support.v4.app
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:31: error: package android.support.v4.app.NotificationCompat.MessagingStyle does not exist
import android.support.v4.app.NotificationCompat.MessagingStyle.Message;
                                                               ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:32: error: package android.support.v4.media.app.NotificationCompat does not exist
import android.support.v4.media.app.NotificationCompat.MediaStyle;
                                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:177: error: package NotificationCompat does not exist
    private void applyStyle(NotificationCompat.Builder builder) {
                                              ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:219: error: package NotificationCompat does not exist
    private void applyMessagingStyle(NotificationCompat.Builder builder,
                                                       ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:220: error: cannot find symbol
                                     Message[] messages) {
                                     ^
  symbol:   class Message
  location: class Builder
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:240: error: package NotificationCompat does not exist
    private void applyBigPictureStyle(NotificationCompat.Builder builder,
                                                        ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:259: error: package NotificationCompat does not exist
    private void applyInboxStyle(NotificationCompat.Builder builder) {
                                                   ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:278: error: package NotificationCompat does not exist
    private void applyBigTextStyle(NotificationCompat.Builder builder) {
                                                     ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:294: error: package NotificationCompat does not exist
    private void applyMediaStyle(NotificationCompat.Builder builder,
                                                   ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:311: error: package NotificationCompat does not exist
    private void applyDeleteReceiver(NotificationCompat.Builder builder) {
                                                       ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:335: error: package NotificationCompat does not exist
    private void applyContentReceiver(NotificationCompat.Builder builder) {
                                                        ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:360: error: package NotificationCompat does not exist
    private void applyActions (NotificationCompat.Builder builder) {
                                                 ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:412: error: package NotificationCompat does not exist
    private NotificationCompat.Builder findOrCreateBuilder() {
                              ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetProvider.java:22: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
                                 ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetProvider.java:24: error: cannot find symbol
public class AssetProvider extends FileProvider {
                                   ^
  symbol: class FileProvider
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:167: error: cannot find symbol
        List<Pair<Date, Intent>> intents = new ArrayList<Pair<Date, Intent>>();
             ^
  symbol:   class Pair
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:167: error: cannot find symbol
        List<Pair<Date, Intent>> intents = new ArrayList<Pair<Date, Intent>>();
                                                         ^
  symbol:   class Pair
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:168: error: cannot find symbol
        Set<String> ids                  = new ArraySet<String>();
                                               ^
  symbol:   class ArraySet
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:185: error: cannot find symbol
            intents.add(new Pair<Date, Intent>(date, intent));
                            ^
  symbol:   class Pair
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:201: error: cannot find symbol
        for (Pair<Date, Intent> pair : intents) {
             ^
  symbol:   class Pair
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:214: error: cannot find symbol
                    case IMPORTANCE_MIN:
                         ^
  symbol:   variable IMPORTANCE_MIN
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:217: error: cannot find symbol
                    case IMPORTANCE_MAX:
                         ^
  symbol:   variable IMPORTANCE_MAX
  location: class Notification
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Notification.java:433: error: package NotificationCompat does not exist
            cache = new SparseArray<NotificationCompat.Builder>();
                                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:311: error: cannot find symbol
            return NotificationCompat.COLOR_DEFAULT;
                   ^
  symbol:   variable NotificationCompat
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:332: error: cannot find symbol
        return NotificationCompat.COLOR_DEFAULT;
               ^
  symbol:   variable NotificationCompat
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:437: error: cannot find symbol
            defaults |= DEFAULT_VIBRATE;
                        ^
  symbol:   variable DEFAULT_VIBRATE
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:439: error: cannot find symbol
            defaults &= DEFAULT_VIBRATE;
                        ^
  symbol:   variable DEFAULT_VIBRATE
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:443: error: cannot find symbol
            defaults |= DEFAULT_SOUND;
                        ^
  symbol:   variable DEFAULT_SOUND
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:446: error: cannot find symbol
            defaults &= DEFAULT_SOUND;
                        ^
  symbol:   variable DEFAULT_SOUND
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:450: error: cannot find symbol
            defaults |= DEFAULT_LIGHTS;
                        ^
  symbol:   variable DEFAULT_LIGHTS
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:453: error: cannot find symbol
            defaults &= DEFAULT_LIGHTS;
                        ^
  symbol:   variable DEFAULT_LIGHTS
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:466: error: cannot find symbol
            return VISIBILITY_PUBLIC;
                   ^
  symbol:   variable VISIBILITY_PUBLIC
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:468: error: cannot find symbol
            return VISIBILITY_SECRET;
                   ^
  symbol:   variable VISIBILITY_SECRET
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:478: error: cannot find symbol
        return Math.min(Math.max(prio, PRIORITY_MIN), PRIORITY_MAX);
                                                      ^
  symbol:   variable PRIORITY_MAX
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:478: error: cannot find symbol
        return Math.min(Math.max(prio, PRIORITY_MIN), PRIORITY_MAX);
                                       ^
  symbol:   variable PRIORITY_MIN
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:617: error: cannot find symbol
        Message[] messages = new Message[list.length()];
        ^
  symbol:   class Message
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:617: error: cannot find symbol
        Message[] messages = new Message[list.length()];
                                 ^
  symbol:   class Message
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:626: error: cannot find symbol
            messages[i] = new Message(message, timestamp, person);
                              ^
  symbol:   class Message
  location: class Options
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\util\AssetUtil.java:365: error: cannot find symbol
            return AssetProvider.getUriForFile(context, authority, file);
                                ^
  symbol:   method getUriForFile(Context,String,File)
  location: class AssetProvider
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\action\Action.java:112: error: package RemoteInput does not exist
        return new RemoteInput.Builder(getId())
                              ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\localnotification\ClickReceiver.java:76: error: cannot find symbol
        Bundle input = RemoteInput.getResultsFromIntent(getIntent());
                       ^
  symbol:   variable RemoteInput
  location: class ClickReceiver
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:121: error: cannot find symbol
                CHANNEL_ID, CHANNEL_NAME, IMPORTANCE_DEFAULT);
                                          ^
  symbol:   variable IMPORTANCE_DEFAULT
  location: class Manager
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Manager.java:414: error: cannot find symbol
        return NotificationManagerCompat.from(context);
               ^
  symbol:   variable NotificationManagerCompat
  location: class Manager
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:114: error: package NotificationCompat does not exist
        NotificationCompat.Builder builder;
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:178: error: cannot find symbol
        Message[] messages = options.getMessages();
        ^
  symbol:   class Message
  location: class Builder
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:222: error: package NotificationCompat does not exist
        NotificationCompat.MessagingStyle style;
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:224: error: package NotificationCompat does not exist
        style = new NotificationCompat.MessagingStyle("Me")
                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:227: error: cannot find symbol
        for (Message msg : messages) {
             ^
  symbol:   class Message
  location: class Builder
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:243: error: package NotificationCompat does not exist
        NotificationCompat.BigPictureStyle style;
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:247: error: package NotificationCompat does not exist
        style = new NotificationCompat.BigPictureStyle(builder)
                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:260: error: package NotificationCompat does not exist
        NotificationCompat.InboxStyle style;
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:263: error: package NotificationCompat does not exist
        style = new NotificationCompat.InboxStyle(builder)
                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:279: error: package NotificationCompat does not exist
        NotificationCompat.BigTextStyle style;
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:281: error: package NotificationCompat does not exist
        style = new NotificationCompat.BigTextStyle(builder)
                                      ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:296: error: cannot find symbol
        MediaStyle style;
        ^
  symbol:   class MediaStyle
  location: class Builder
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:298: error: cannot find symbol
        style = new MediaStyle(builder)
                    ^
  symbol:   class MediaStyle
  location: class Builder
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:362: error: package NotificationCompat.Action does not exist
        NotificationCompat.Action.Builder btn;
                                 ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:368: error: package NotificationCompat.Action does not exist
             btn = new NotificationCompat.Action.Builder(
                                                ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:414: error: package NotificationCompat does not exist
        NotificationCompat.Builder builder = Notification.getCachedBuilder(key);
                          ^
D:\Chandan\Projects\Ionic-6\tineri-cordova - Restangular\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Builder.java:417: error: package NotificationCompat does not exist
            builder = new NotificationCompat.Builder(context, options.getChannel());
                                            ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
96 errors

> Task :app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Ionic Info

Ionic:

   Ionic CLI                     : 6.19.0 (C:\Users\CGauns\AppData\Roaming\nvm\v16.14.2\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 6.1.3
   @angular-devkit/build-angular : 13.2.6
   @angular-devkit/schematics    : 13.2.6
   @angular/cli                  : 13.2.6
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 10.1.2
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 7 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.5.0

System:

   NodeJS : v16.14.2 (C:\Program Files\nodejs\node.exe)
   npm    : 8.5.0
   OS     : Windows 10