Firebase への接続
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
図 1. Android Studio の [Assistant] ツール ウィンドウ
Firebase は、質の高いアプリの迅速な開発、ユーザーベースの拡大、収益アップを支援するモバイル プラットフォームです。Firebase 向け Google アナリティクスを中心とした、複数の補完的な機能から構成されており、ニーズに合わせて自由に組み合わせて利用できます。図 1 に示されている [Assistant] ウィンドウを使用し、Android Studio から直接 Firebase サービスを探してアプリに統合できます。
まず、プロジェクト構成に Google の Maven リポジトリを追加していることを確認します。
Android Studio で [Assistant] ウィンドウを開いて使用する手順は次のとおりです。
- [Tools] > [Firebase] を選択して [Assistant] ウィンドウを開きます。
- 表示された機能のいずれかをクリックして開きます。
- [Get Started with Firebase Analytics] をクリックしてチュートリアルを開きます。このチュートリアルでは、Firebase に接続し、必要なコードをアプリに追加します。
Firebase サービスの使用方法の詳細については、Firebase のドキュメントをご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# Connect to Firebase\n\n**Figure 1.** The Assistant tool window in\nAndroid Studio.\n\n[Firebase](https://firebase.google.com) is a mobile platform that helps you\nquickly develop high-quality apps, grow your user base, and earn more money.\nFirebase consists of complementary features that you can mix and match to fit\nyour needs, with\n[Google Analytics for Firebase](https://firebase.google.com/docs/analytics/) at\nthe core. You can explore and integrate Firebase services in your app directly\nfrom Android Studio using the **Assistant** window shown in figure 1.\n\nFirst, make sure you have [added Google's Maven repository](/studio/build/dependencies#google-maven) to your project configuration.\n\nYou can open and use the **Assistant** window in Android Studio by\nfollowing these steps:\n\n1. Select **Tools \\\u003e Firebase** to open the **Assistant** window.\n2. Click to expand one of the listed features.\n3. Click **Get Started with Firebase Analytics** to open a tutorial that connects you to Firebase and adds the necessary code to your app.\n\nFor more information about using Firebase services, see the\n[Firebase documentation](https://firebase.google.com/docs/)."]]