capacitor-community / fcm

Enable Firebase Cloud Messaging for Capacitor apps
https://capacitor.ionicframework.com/docs/
MIT License
237 stars 83 forks source link

cannot build android after migration from capacitor-fcm@2.0.0 #43

Closed josh-m-sharpe closed 4 years ago

josh-m-sharpe commented 4 years ago

Android production builds are failing with the following now that we've migrated to this version of the plugin.

* What went wrong:
Could not determine the dependencies of task ':app:collectReleaseDependencies'.
> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.
   > Could not resolve project :capacitor-community-fcm.
     Required by:
         project :app
      > Unable to find a matching configuration of project :capacitor-community-fcm:
          - None of the consumable configurations have attributes.
josh-m-sharpe commented 4 years ago

To clarify, we upgraded to @capacitor-community/fcm@1.0.4

arraymonkey commented 4 years ago

I had the same problem, try editing the capacitor.settings.gradle and add 'capacitor-fcm' to the src. from: include ':capacitor-community-fcm' project(':capacitor-community-fcm').projectDir = new File('../node_modules/@capacitor-community/fcm/android')

to:

include ':capacitor-community-fcm' project(':capacitor-community-fcm').projectDir = new File('../node_modules/@capacitor-community/fcm/android/capacitor-fcm')

stewones commented 4 years ago

fixed in 1.0.6 please check out the android breaking change on changelog