user8400863
user8400863

Reputation: 745

Ionic Capacitor still referring to cordova-support-google-services on Android builds, when removed

I recently updated my Ionic 5 app to Capacitor. Originally i have using notification messages with Firebase using the cordova libary '@ionic-native/push/ngx.

I also had cordova-support-google-services installed, therefore i also removed it thinking Capacitor already includes notification plugin.

Now when i try to preform a RUN using "ionic capacitor run", Android Studio starts, i get the follow output

org.gradle.api.resources.MissingResourceException: Could not read script 'G:\AVR_Project\Ionic Projects\app\node_modules\cordova-support-google-services\build.gradle' as it does not exist.

It seems like it is still trying to use the cordova version, that i removed and not the default capacitor version.

Am i doing something wrong?

Upvotes: 0

Views: 1167

Answers (1)

jcesarmobile
jcesarmobile

Reputation: 53341

after you uninstall the plugin, run npx cap sync android, that should remove the gradle reference from the plugin

Upvotes: 0

Related Questions