Open dland512 opened 4 years ago
I just tried building with the same versions. Seems to be working for me. Can you provide me a sample repo reproducing your problem
@sagrawal31 Okay, I created two repositories for you to try. The first one should immediately demonstrate the issue:
git clone https://github.com/dland512/firebase-lib-issue-with-plugin-2.git
cd firebase-lib-issue-with-plugin-2
cordova platform add android
cordova build android
You may need to run this under node v6.11.0
with npm 3.10.10
. That's what it was originally built with and sometimes it has issues if you deviate.
If you get an error about vue-pusher
when you run cordova platform add android
just run it again.
For comparison, if you build it without cordova-plugin-firebase-lib
installed, it works fine. I seem to have trouble actually removing the plugin once it's installed so I created a version that doesn't have it yet:
git clone https://github.com/dland512/firebase-lib-issue-without-plugin-2.git
cd firebase-lib-issue-without-plugin-2
cordova platform add android
cordova build android
Thank you for having a look at this for me and let me know how it goes.
I have got a fix for this. Will share you soon.
@dland512 I need to do a quick test. Can you open platforms/android/build.gradle
, and in the start of the file, you will find buildscript
-> repositories
. Inside it, can you add google()
in the start and then retry building the app?
Didn't seem to fix it. This is what I ended up with:
buildscript {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' } // Fabrics Maven repository from cordova-plugin-firebase-lib
maven {
url "https://maven.google.com"
}
}
Still getting the same error.
Describe the bug
Will not build under Android. Note this does not seem to be quite the same issues as this one. In my case there is no real error message given. I'm using the same version of the
cordova-android
andcordova-plugin-firebase-lib
they are.To Reproduce
Add the plugin and build for android.
Steps to reproduce the behavior:
Expected behavior
Should build.
Console Logs
No real reason appears to be given. Including
-d --debug
or-d --stacktrace
don't provide any more info.Plugin Version
cordova-plugin-firebase-lib 3.3.0 "Google Firebase Plugin"
Desktop (please complete the following information):
Additional context
cordova version: 7.1.0 cordova-android version: 6.4.0