I found the post @Sujan12 was referencing, it’s this one: Ionic diagnostic plugin error when building in Phonegap build
I did what the configurations to the gradle file and it worked for me, strangely enough it didn’t work for one of the users in that same thread. I suspect it’s because I also ran:
npm uninstall --save @ionic-native/core
npm install --save @ionic-native/core@latest