Connect to Firebase

Connect to Firebase - 图1
Figure 1. The Assistant tool window inAndroid Studio.

Firebase is a mobile platform that helps youquickly develop high-quality apps, grow your user base, and earn more money.Firebase is made up of complementary features that you can mix-and-match to fityour needs, withGoogle Analytics for Firebase atthe core. You can explore and integrate Firebase services in your app directlyfrom Android Studio using the Assistant window shown in figure 1.

First make sure you have installed Google Repository version 26 or higher, usingthe following steps:

  • Click Tools > SDK Manager.
  • Click the SDK Tools tab.
  • Check the Google Repository checkbox, and click OK.
  • Click OK to install.
  • Click Background to complete the installation in the background, or waitfor the installation to complete and click Finish.
    You can now open and use the Assistant window in Android Studio byfollowing these steps:

  • Click Tools > Firebase to open the Assistant window.

  • Click to expand one of the listed features (for example, Analytics), thenclick the Get Started tutorial to connect to Firebase and add thenecessary code to your app.
    For more information about using Firebase services, see theFirebase documentation.