Reminder: By Aug 31, 2025, all new apps and updates to existing apps must use Billing Library version 7 or newer. If you need more time to update your app, you can request an extension until Nov 1, 2025. Learn about
Play Billing Library version deprecation.
การเลิกใช้งานเวอร์ชัน Google Play Billing Library
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตามที่ประกาศใน Google I/O ปี 2019 และบล็อกโพสต์
Meet Google Play Billing Library Version 3 ไลบรารีการเรียกเก็บเงินของ Play ทุกเวอร์ชัน
จะใช้รอบการเลิกใช้งาน 2 ปี
หัวข้อนี้จะตอบคำถามที่พบบ่อยเกี่ยวกับการเลิกใช้งาน Billing Library เวอร์ชัน
และการย้ายข้อมูลไปยังเวอร์ชันใหม่กว่า
ไทม์ไลน์การสนับสนุนสำหรับเวอร์ชันต่างๆ
เวอร์ชัน (รวมถึง
เวอร์ชันย่อย)
|
คุณใช้เวอร์ชันวันที่ล่าสุดเพื่อเผยแพร่แอปใหม่
หรืออัปเดตแอปที่มีอยู่ได้ |
คุณสามารถส่งคำขอขยายเวลาได้
|
5 |
31-ส.ค.-2024 |
Nov-1-2024 |
6 |
31-ส.ค.-2025 |
Nov-1-2025 |
7 |
31-ส.ค.-2026 |
1-11-2026 |
8 |
31-ส.ค.-2027 |
Nov-1-2027 |
- ฉันจะดูได้อย่างไรว่า APK หรือ App Bundle ใดที่ทำให้เกิดคำเตือนการเลิกใช้งาน
- ตรวจสอบการอ้างอิงที่นำเข้าของโปรเจ็กต์ (เช่น การอ้างอิงที่พบในไฟล์
build.gradle
ของโปรเจ็กต์) หากต้องการปฏิบัติตามข้อกำหนด แอป
ต้องนำเข้าเวอร์ชันที่รองรับตามที่ระบุไว้ในตาราง โปรดทราบว่า
ทรัพยากร Dependency ในการเรียกเก็บเงินจะอยู่ใน APK ที่ต้องใช้สิทธิ์
com.android.vending.BILLING
เท่านั้น
- APK หรือ App Bundle ที่ฉันไม่ได้ดูแลรักษาแล้วใช้ Play Billing Library เวอร์ชันที่เลิกใช้งานแล้ว ฉันต้องอัปเดตไหม
- เราขอแนะนำอย่างยิ่งให้อัปเดต APK ทั้งหมดเป็น Play Billing Library เวอร์ชันล่าสุด อย่างไรก็ตาม หากไม่มีการบำรุงรักษา APK อีกต่อไป คุณก็ไม่จำเป็นต้องดำเนินการใดๆ กับ APK ในขณะนี้ การเลิกใช้งานนี้
จะป้องกันไม่ให้แอปใหม่และการอัปเดตใช้
Play Billing Library เวอร์ชันเก่าเท่านั้น แอปที่มีอยู่ซึ่งใช้ไลบรารีเวอร์ชันที่เลิกใช้งานแล้วจะยังคงทำงานต่อไปได้ตามปกติ โปรดตรวจสอบว่าได้อัปเดต APK ทั้งหมด
ที่ได้รับการบำรุงรักษาอย่างสม่ำเสมอแล้ว
- วิธีแก้ไขเมื่ออัปเดต APK หรือ App Bundle เป็น Play Billing Library เวอร์ชันล่าสุดแล้ว แต่ยังคงได้รับคำเตือนเกี่ยวกับการเลิกใช้งาน
- ตรวจสอบว่า
AndroidManifest.xml
มีรายการที่มีชื่อ
com.google.android.play.billingclient.version
หากไม่มีรายการ
ให้ตรวจสอบการตั้งค่าการผสานไฟล์ Manifest
เพื่อดูว่ามีการทิ้งแอตทริบิวต์ไฟล์ Manifest ระหว่างการผสานไฟล์ Manifest หรือไม่
- ฉันจะอัปเกรดจาก Play Billing Library เวอร์ชันก่อนหน้าได้อย่างไร
อัปเดตทรัพยากร Dependency ในรุ่นของคุณเพื่อใช้เวอร์ชันที่รองรับตามที่ระบุ
ในตาราง หากต้องการดูว่ามีการเปลี่ยนแปลงอะไรบ้างระหว่างรุ่นต่างๆ โปรดอ่านบันทึกประจำรุ่น
นอกจากนี้ เรายังมีคำแนะนำแบบเจาะลึกสำหรับการย้ายข้อมูลไปยัง PBL 8
ฉันจะค้นหาแบบฟอร์มขยายเวลาได้จากที่ใดเพื่อเผยแพร่แอปแก่ผู้ใช้ Google Play ทุกคนต่อไปจนถึงวันที่ 1 พฤศจิกายน
หากแอปยังคงใช้ Play Billing Library เวอร์ชันที่ล้าสมัย คุณจะได้รับคำเตือนและข้อความในกล่องจดหมายใน Play Console
เข้าถึงแบบฟอร์มขยายเวลาได้ผ่านทางหน้ารายละเอียดของคำเตือนหรือปัญหาในหน้าสถานะนโยบายของ Play Console
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# Google Play Billing Library version deprecation\n\nAs announced at Google I/O in 2019 and the\n[Meet Google Play Billing Library Version 3](https://android-developers.googleblog.com/2020/06/meet-google-play-billing-library.html \"Play Billing Library Version 3 Blog\") blog post, all versions of Play\nBilling Library will follow a two year deprecation cycle.\n\nThis topic answers common questions regarding Billing Library version\ndeprecation and migrating to newer versions.\n\nSupport timeline For different versions\n---------------------------------------\n\n| Version (including minor versions) | Last date version can be used to release new apps or updates to existing apps | Extension request can be made up to date |\n|------------------------------------|-------------------------------------------------------------------------------|------------------------------------------|\n| 5 | Aug-31-2024 | Nov-1-2024 |\n| 6 | Aug-31-2025 | Nov-1-2025 |\n| 7 | Aug-31-2026 | Nov-1-2026 |\n| 8 | Aug-31-2027 | Nov-1-2027 |\n\n**How can I find which APK or App Bundle is triggering a deprecation warning?**\n: Review your project's imported dependencies (for example, those found\n in your project's `build.gradle` file). To be compliant, apps\n must import a supported version as indicated in the table. Note that\n Billing dependencies would be found only in APKs that require the\n `com.android.vending.BILLING` permission.\n\n**An APK or App Bundle that I no longer maintain is using a deprecated version of the Play Billing Library. Do I need to update?**\n: We strongly recommend updating all APKs to the latest version of the\n Play Billing Library. However, if an APK is no longer maintained, then\n no action is required for the APK at this time. This deprecation\n prevents only new apps and updates from using older versions of the\n Play Billing Library. Existing apps that use a deprecated version of\n the library will continue to function as expected. Please ensure that all\n actively maintained APKs are updated.\n\n**How to fix APK or App Bundle updated to latest Play Billing Library but still triggering deprecation warning?**\n: Make sure your `AndroidManifest.xml` contains an entry with name\n `com.google.android.play.billingclient.version`. If the entry\n isn't present, check your\n [manifest merge settings](/studio/build/manage-manifests#merge-manifests)\n to see if the manifest attribute is being dropped during manifest merging.\n\n**How can I upgrade from an earlier version of Play Billing Library?**\n\n: Update the dependency in your release to use a supported version as indicated\n in the table. To see what changed between releases, read the\n [release notes](/google/play/billing/release-notes).\n\n In addition, we have an in-depth guide for migrating\n [to PBL 8](/google/play/billing/migrate-gpblv8).\n\n**Where can I find the extension form to continue distributing to all Google\nPlay users until 1 November?**\n\nIf your app is still using an out of date Play Billing Library version, you'll\nreceive a warning and an inbox message in Play Console. The extension form is\navailable through the details page of the warning or issue on the\n[Policy status](https://play.google.com/console/developers/app/policy-center \"Policy Center\") page in Play Console."]]