edismooth / ionic2-firebase

[DEPRECATED] Easy example of Firebase working with Ionic 2.
33 stars 16 forks source link

can not build #6

Open taigeair opened 7 years ago

taigeair commented 7 years ago

I get this error when I try to build android. Do you have any ideas why this is the case?

FAILURE: Build failed with an exception.

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.427 secs

zakariaf commented 7 years ago

In Android Studio:

Click Tools > Android > SDK Manager Click into the SDK Tools tab Select and install Google Play Services (rev 30) and Google Repository (rev 26). Sync and Build your project.

http://stackoverflow.com/questions/37310188/failed-to-resolve-com-google-firebasefirebase-core9-0-0

janein commented 7 years ago

Hi,

I still can't build.

* What went wrong:                                                                                                                                
A problem occurred configuring root project 'android'.                                                                                            
> Cannot add task ':processDebugGoogleServices' as a task with that name already exists.

I set up a blank ionic-2 project and just followed the steps in your readme. I just wasn't sure where to add the lines the firebase-docs require: https://firebase.google.com/docs/android/setup (below "Add the SDK")

I tried to add both things to the /platforms/android/build.gradle. Is this the correct place?

Thanks, janein

PS: I installed every package in the Android SDK I can imagine to help solving this problem ;)

janein commented 7 years ago

Ok it looks like there are no changes in the build.gradle required to get this going :) Works fine on my device, I just get an error FCMPlugin is not defined when serving to the browser. I guess I need to change sowmething to work properly on RC0. Do you know how I can import the FCMPlugin properly?