Re: Chromium Android Firebase Integration

317 views
Skip to first unread message
Message has been deleted

Pankaj Goyal

unread,
Oct 6, 2020, 4:52:18 PM10/6/20
to Chromium-dev, muha...@gmail.com
I guess the file you are looking for is in build/android/gradle/root.jinja to add the classpath. I am also trying the same following this post: https://groups.google.com/a/chromium.org/g/chromium-dev/c/rjpxUJNCJU8/m/q81kfOpSBAAJ

Haven't got it working yet but its a start.


On Tuesday, September 22, 2020 at 6:56:02 PM UTC+1 muha...@gmail.com wrote:
Hello,

We are trying to implement Firebase Analytics module into Chromium Android project. After injecting firebase module into build.gradle file which is located under android_deps folder, and executed fetch_all.py, Android Studio debugging process tells us following on logcat.

FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project.

FirebaseInitProvider: FirebaseApp initialization unsuccessful

Steps we produced;

  • Inject code build.gradle 
  • image.png
  • Run ‘/src/third_party/android_deps/fetch_all.py’
  • Add newly added firebase module name "//third_party/android_deps:google_firebase_firebase_analytics_java",’ line 494 what is the end of dependencies array. File ‘/src/chrome/android/BUILD.gn’
  • Start building
Screen Shot 2020-09-22 at 17.30.34.png

Has anyone ever face this issue on project? 

In general what is the most proper way to include third party dependencies? Are we doing right?

Thank you for your attention.

Reply all
Reply to author
Forward
0 new messages