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

Error with packages at running after installing plugin #876

Closed
ahrherrera opened this issue Sep 26, 2018 · 6 comments
Closed

Error with packages at running after installing plugin #876

ahrherrera opened this issue Sep 26, 2018 · 6 comments

Comments

@ahrherrera
Copy link

Describe the bug
After installing the plugin, there are errors at building, related to packages: Failed to apply plugin [id 'com.google.gms.google-services'], and I fixed it by adding the classpath to the .gradle files, then there is a error Failed to apply plugin [id 'io.fabric']

To Reproduce
Steps to reproduce the behavior:

  1. Install plugin
  2. Build Ionic Project
  3. It will appear build errors targeting to /platforms/android/cordova-plugin-firebase

Expected behavior
Build successful and let me use Firebase services

Screenshots

Plugin Version
"^2.0.2"
Smartphone (please complete the following information):

  • Device: Pixel XL
  • OS: Android Oreo
  • Browser WebView

Additional context

@soumak77
Copy link
Contributor

@ahrherrera could you test PR #872 to see if it fixes this issue for you. That'll help get the fix released faster. You can check our contributing doc for info on how to test a PR.

@soumak77
Copy link
Contributor

@ahrherrera I believe this has been fixed via PR #883. Please verify by installing the plugin from master

cordova plugin add https://github.com/arnesson/cordova-plugin-firebase.git#master

If you are still encountering the issue, please reopen it.

@mrtaltnn
Copy link

mrtaltnn commented Oct 5, 2018

@soumak77 I get the following error when I get it from the master.

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\...\mobile\0\or-oreo-mobile\platforms\android\build.gradle' line: 46
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method google() for arguments [] on repository container.

BUILD FAILED

@soumak77
Copy link
Contributor

soumak77 commented Oct 5, 2018

@mrtaltnn what version of cordova-android are you using?

@soumak77
Copy link
Contributor

soumak77 commented Oct 5, 2018

Based on the other issues you opened, it looks like you're using version cordova-android 6.3. You'll need to update to 6.4 to fix this issue.

@mrtaltnn
Copy link

mrtaltnn commented Oct 8, 2018

I updated to cordova-android 6.4. This problem solved. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants