依存関係を宣言する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Driver SDK と Fleet Engine 間のスムーズな通信を確保するには、必要な依存関係を宣言する必要があります。これには、プロジェクトに特定のライブラリを追加することと、ProGuard を使用している場合は構成ファイルを更新することが含まれます。
ProGuard 構成を更新する
ProGuard を使用してビルドを最適化する場合は、ProGuard の構成ファイルに次の行を追加する必要があります。
-dontwarn com.google.**
-dontwarn io.grpc.**
-dontwarn okio.**
ProGuard は、最小 Android API レベル 23 をサポートしています。
次のステップ
認証トークンを作成する
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eEstablish seamless communication between the Driver SDK and Fleet Engine by declaring necessary dependencies, including adding specific libraries.\u003c/p\u003e\n"],["\u003cp\u003eWhen using ProGuard for build optimization, update your ProGuard configuration file with provided lines to prevent warnings and ensure compatibility with Android API level 23 and above.\u003c/p\u003e\n"],["\u003cp\u003eProceed to create authentication tokens for secure communication and functionality within your integration.\u003c/p\u003e\n"]]],[],null,["To ensure smooth communication between the Driver SDK and Fleet Engine, you need\nto declare the necessary dependencies. This involves adding\nspecific libraries to your project and, if using ProGuard, updating your\nconfiguration file.\n\nUpdate ProGuard configuration\n\nIf you use [ProGuard](https://www.guardsquare.com/en/products/proguard) to optimize your builds, you may need to add the\nfollowing lines to your ProGuard configuration file: \n\n -dontwarn com.google.**\n -dontwarn io.grpc.**\n -dontwarn okio.**\n\nProGuard supports the minimum Android API level 23.\n\nWhat's next\n\n[Create authentication tokens](/maps/documentation/mobility/driver-sdk/on-demand/android/authenticate)"]]