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\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)"]]