Khai báo phần phụ thuộc
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để đảm bảo hoạt động giao tiếp diễn ra suôn sẻ giữa Driver SDK và Fleet Engine, bạn cần khai báo các phần phụ thuộc cần thiết. Việc này bao gồm thêm các thư viện cụ thể vào dự án và nếu đang dùng ProGuard, hãy cập nhật tệp cấu hình.
Cập nhật cấu hình ProGuard
Nếu sử dụng ProGuard để tối ưu hoá các bản dựng, bạn có thể cần thêm các dòng sau vào tệp cấu hình ProGuard:
-dontwarn com.google.**
-dontwarn io.grpc.**
-dontwarn okio.**
ProGuard hỗ trợ cấp độ API tối thiểu là 23 của Android.
Bước tiếp theo
Tạo mã thông báo xác thực
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-31 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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)"]]