Adding Firebase to Flutter package

20 views
Skip to first unread message

sarbjot singh

unread,
Jan 20, 2020, 3:25:08 AM1/20/20
to Flutter Development (flutter-dev)
Hey,

I am trying to add Firebase to a flutter package. The intructions inlclude this step:

In your module (app-level Gradle file (usually android/app/build.gradle), apply the Google Services Gradle plugin.

// Add the following line:
apply plugin
: 'com.google.gms.google-services'  // Google Services plugin


android
{
 
// ...
}
but, when initializing a flutter package there is no android/app/build.gradle included for the package. How do I get aroung this?

Thank you

Jason Phan

unread,
Jan 20, 2020, 7:38:17 AM1/20/20
to sarbjot singh, Flutter Development (flutter-dev)
Hi Sarbjot - run "flutter --version" and "flutter doctor -v" to see if you have the latest flutter installed or any problems, respectively. If you already have the latest version, I'd recommend a re-install. Just ran "flutter create testproject" and android/app/build.gradle did get created on flutter version v1.12.13+hotfix.5.

Screen Shot 2020-01-20 at 8.36.31 PM.png


--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/fd732d71-b30e-476a-abdf-be2cba3ee5db%40googlegroups.com.


--
Jason Phan
WhatsApp / Viber: +1 224 595 6839

Reply all
Reply to author
Forward
0 new messages