Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova-plugin-intercom 10.1.0 fails to compile for Android with Capacitor 3 #5019

Closed
abesiemsen opened this issue Sep 7, 2021 · 1 comment · Fixed by #5024
Closed

cordova-plugin-intercom 10.1.0 fails to compile for Android with Capacitor 3 #5019

abesiemsen opened this issue Sep 7, 2021 · 1 comment · Fixed by #5024

Comments

@abesiemsen
Copy link

abesiemsen commented Sep 7, 2021

The latest version of cordova-plugin-intercom (10.1.0) fails to compile for android with Capacitor 3.

Steps to reproduce:

Create a new Ionic project with ionic start, using the 'blank' app template.
Add the android platform: ionic cap add android.
Sync, ionic cap sync, open ionic cap open android, and build in Android Studio, it is successful.

Now, install cordova-plugin-intercom, per https://ionicframework.com/docs/native/intercom.

npm install cordova-plugin-intercom
npm install @ionic-native/intercom
ionic cap sync

Now in Android Studio, the build fails:

FAILURE: Build failed with an exception.

* Where:
Script '/Users/abramsiemsen/Desktop/test/Test/node_modules/cordova-plugin-intercom/src/android/build-extras-intercom.gradle' line: 54

* What went wrong:
A problem occurred configuring project ':app'.
> Could not get unknown property 'cordovaConfig' for project ':app' of type org.gradle.api.Project.

What I expected: A successful build.

Granted, this is almost certainly an issue with cordova-plugin-intercom, but this page suggests letting you know when a cordova plugin is incompatible... so you're welcome? 😉

Ionic info for above test:

Ionic:

   Ionic CLI                     : 6.17.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.7.0
   @angular-devkit/build-angular : 12.1.4
   @angular-devkit/schematics    : 12.1.4
   @angular/cli                  : 12.1.4
   @ionic/angular-toolkit        : 4.0.0

Capacitor:

   Capacitor CLI      : 3.2.2
   @capacitor/android : 3.2.2
   @capacitor/core    : 3.2.2
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 1.4.1

System:

   NodeJS : v14.17.5 (/usr/local/Cellar/node@14/14.17.5/bin/node)
   npm    : 6.14.14
   OS     : macOS Big Sur
@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant