ประกาศทรัพยากร Dependency
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณต้องประกาศการขึ้นต่อกันที่จำเป็นเพื่อให้ Driver SDK และ Fleet Engine สื่อสารกันได้อย่างราบรื่น
ซึ่งรวมถึงการเพิ่มไลบรารีที่เฉพาะเจาะจงลงในโปรเจ็กต์ และหากใช้ ProGuard ก็ต้องอัปเดตไฟล์การกำหนดค่า
อัปเดตการกำหนดค่า ProGuard
หากใช้ ProGuard เพื่อเพิ่มประสิทธิภาพบิลด์ คุณอาจต้องเพิ่มบรรทัดต่อไปนี้ลงในไฟล์กำหนดค่า ProGuard
-dontwarn com.google.**
-dontwarn io.grpc.**
-dontwarn okio.**
ProGuard รองรับระดับ API ของ Android ขั้นต่ำที่ 23
ขั้นตอนถัดไป
สร้างโทเค็นการตรวจสอบสิทธิ์
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-31 UTC
[null,null,["อัปเดตล่าสุด 2025-08-31 UTC"],[[["\u003cp\u003eThe Driver SDK requires specific dependencies to communicate with Fleet Engine, including adding libraries and updating ProGuard configuration.\u003c/p\u003e\n"],["\u003cp\u003eIf using ProGuard for optimization, add specific lines to your configuration file to avoid warnings related to the required libraries.\u003c/p\u003e\n"],["\u003cp\u003eProGuard supports a minimum Android API level of 23 for Driver SDK integration.\u003c/p\u003e\n"],["\u003cp\u003eFor subsequent steps, proceed to creating authentication tokens for securing communication.\u003c/p\u003e\n"]]],[],null,["# Declare dependencies\n\nTo 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-----------------------------\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\n[Create authentication tokens](/maps/documentation/mobility/driver-sdk/scheduled/android/authenticate)"]]