Error when running on android device

Hello,

I am porting an app to the latest version of ionic (from ionic 2 to ionic 7). The app uses Cordova plugins like LocalNotifications.

In web mode, it works fine, but I’m having trouble running on a physical android device.

i get the following error:

…plugin/notification/Manager.java:30: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;

How can I add the android support library to my project?

Thank you!

Hi @Hills90210 ,

I have edited the question. It’s better ?

Greetings

Yes, and what you mean by port over?

upgrade from ionic2 to ionic7, sorry.

I found the ‘cordova-plugin-androidx’ plugin, which has allowed me to run. But it does weird things to me…

I’ll keep looking, thanks for answering.

Greetings