宣告依附元件
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如要確保 Driver SDK 與 Fleet Engine 之間的通訊順暢無礙,請宣告必要依附元件。這包括在專案中加入特定程式庫,以及更新設定檔 (如果使用 ProGuard)。
更新 ProGuard 設定
如果您使用 ProGuard 最佳化建構作業,可能需要在 ProGuard 設定檔中新增下列幾行:
-dontwarn com.google.**
-dontwarn io.grpc.**
-dontwarn okio.**
ProGuard 支援的最低 Android API 級別為 23。
後續步驟
建立驗證權杖
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\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)"]]