Error when running on android device


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/ error: cannot find symbol

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

Thank you!

Hi @Hills90210 ,

I have edited the question. It’s better ?


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.