SkillsReviewed · android

Play Billing Library Version Upgrade

Play Billing Library Version Upgrade is an AI assistant skill for Android developers updating in-app billing, but its references contain conflicting migration guidance. It directs dependency discovery, version-by-version planning, code changes and Gradle verification, with supporting release notes and checklists.

Researched 17 Nov 2026

In short.

Play Billing Library Version Upgrade is an AI assistant skill for Android developers migrating billing integrations, but conflicting technical examples require developer supervision. Its process covers dependency discovery, direct or staged upgrades, SDK alignment, billing refactoring and build checks. The strongest concerns are disagreement over the product-query callback, outdated purchase-history guidance and imprecise version boundaries. Installation, migration success and live purchase behavior are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected folder play/play-billing-library-version-upgrade: SKILL.md, references/migration-logic.md, references/version-checklist.md and references/android/google/play/billing/release-notes.md, plus repository-root LICENSE.txt, at revision c72942584fff970dac86ced78b367fce0c441e52. Other repository skills, Android CLI implementation, assistant host code, linked external documentation and application code are outside the supplied scope. Installation, code generation, migrations, builds, tests and live billing behavior were not executed and remain unassessed.

The overview

Identity

The resource is the play/play-billing-library-version-upgrade folder in android/skills. SKILL.md identifies Google LLC as its author and describes upgrading legacy Google Play Billing Library integrations to the latest stable version. It supplies instructions for a coding assistant, rather than an executable migration program.

The folder contains SKILL.md, migration logic, a version checklist and bundled billing release notes. The original source is available at the fixed revision [https://github.com/android/skills/tree/c72942584fff970dac86ced78b367fce0c441e52/play/play-billing-library-version-upgrade].

Assessment

The skill offers a useful structure for a supervised billing migration: establish the starting point, identify breaking changes, preserve purchasing intent and verify intermediate builds. Its references address concrete changes such as replacing SkuDetails, selecting subscription offers and changing connection handling.

Its technical instructions should be reconciled with the target version's API documentation before applying edits. Conflicting callback examples and purchase-history advice make unattended use a poor fit. There are no demonstrated migration outcomes, reliability measurements or execution results in the supplied files.

Users

The intended users are developers maintaining Android apps that already use Google Play Billing. It is particularly relevant when old billing APIs remain in code or several major releases separate the existing integration from the intended target.

Beginners get an ordered explanation of the migration, but still need someone who can review Gradle changes and purchasing behavior. Experienced developers get a starting checklist for subscriptions, one-time products and deprecated APIs. The skill assumes an existing integration; it does not provide a complete first-time billing implementation tutorial.

Capabilities

The instructions cover finding billing dependencies in build.gradle, build.gradle.kts or libs.versions.toml; attempting an initial build; identifying a target release; producing a change checklist; and updating SDK settings and billing code.

The refactoring material covers automatic service reconnection, ProductDetails and offer selection, subscription replacement modes, asynchronous purchase queries and pending-purchase configuration. The checklist also covers blocked Play Store error handling and nullable external-payment links. These are prescribed assistant activities, with no evidence that every case is implemented correctly.

For staged migrations, the skill requests an assembleDebug build at each intermediate version. Its final checks request tests, a clean debug build and additional Gradle tasks, followed by an explanation of changes and possible new features.

Using it

Requirements

Use requires an assistant environment capable of reading the skill and references, inspecting and editing the Android project, consulting migration documentation and invoking its build tools. The files do not specify supported assistant products, model requirements or a complete Android Gradle Plugin and Kotlin compatibility matrix.

The local guidance prescribes compileSdk 34 or higher for PBL 7 and 8, and 35 or higher for PBL 9. The bundled release notes separately place the minSdkVersion increase to 23 at PBL 8.1.0. These settings need target-version confirmation: compileSdk, targetSdkVersion and minSdkVersion describe different compatibility constraints.

The requested Gradle commands also depend on the project's available tasks. In particular, the evidence does not establish that a given project defines the requested sync task.

Mechanism

The process begins with the declared dependency and an attempted build. Only when that build fails immediately does the skill direct a search for deprecated APIs to infer an effective version, defined as the last version supporting those APIs.

It chooses a direct migration when the effective starting point is within two major versions of the target. Larger gaps use two-major-version steps until the target is within reach. Each jump combines migration guides, release notes and feature-specific documentation before code changes.

This is a documentation-driven process that depends on the assistant's interpretation. Legacy API presence supplies a compatibility clue rather than an exact resolved dependency version; for example, the skill itself describes SkuDetails as indicating PBL 7 or earlier.

Setup

The bundled release notes document installation through Android CLI with android skills add play-billing-library-version-upgrade. They suggest activating it with the request: Help me upgrade my Play Billing Library implementation.

For source inspection, obtain the complete skill folder and retain its references alongside SKILL.md. The documented CLI command does not explain revision pinning, supported host versions or exactly which files it installs. Installation behavior is not assessed.

Example

For a hypothetical app confirmed to use PBL 6 with a target of 9.1.0, the skill's rule produces a staged path through major version 8 before proceeding to 9. At the version-8 stage, relevant changes could include replacing legacy SKU queries with ProductDetails queries, updating pending-purchase parameters and opting into automatic service reconnection.

The assistant would be expected to explain applicable changes, build the intermediate version and then address version-9 changes used by the app, such as external-payment link null handling. Version 9.1.0 is the newest entry in the bundled notes, rather than an independently established current target. This example has no execution results.

Assessment & evidence

Limitations

The product-query examples disagree. migration-logic.md shows a callback receiving one QueryProductDetailsResult and reading result.billingResult, while version-checklist.md requires the callback signature (BillingResult, QueryProductDetailsResult). The target API must resolve that conflict before copying the example.

Purchase-history advice is also inconsistent. migration-logic.md treats queryPurchaseHistoryAsync as a v6-and-later pagination concern. The release notes mark it deprecated in version 7 and describe purchase-history method removal in version 8, with separate alternatives for active, consumed and canceled purchases.

Some version labels are imprecise. The migration logic associates personalized pricing with version 8, although the release notes introduce setIsOfferPersonalized() in version 5. The checklist places minSdkVersion 23 under version 8 generally, while the release history dates that increase to 8.1.0.

The final validation stage emphasizes Gradle tasks and does not specify a complete purchase-flow test plan for the target version. Compilation alone would leave purchase completion, delayed payments, acknowledgments and entitlement behavior unproven.

Reasoning

The strongest design choice is its emphasis on code intent. Replacing an old class name is insufficient when one product can expose multiple offers or a subscription replacement mode changes charging behavior. The skill explicitly asks the assistant to preserve those business meanings.

Intermediate builds could help localize breaking changes, but that is a rationale rather than a measured result. Because the process combines assistant judgment with inconsistent local references, its practical value depends on reviewing the proposed changes against the actual dependency, target API and app behavior.

Alternatives

A direct alternative is a developer-led migration using the target-version migration guide and official billing release notes. The source links to [https://developer.android.com/google/play/billing/migrate-pbl-latest] and [https://developer.android.com/google/play/billing/release-notes].

That approach requires the developer to assemble and apply the checklist directly. The skill supplies an assistant-oriented sequence around those documents. The evidence provides no comparison of migration speed, correctness or other assistant skills.

Evidence

The source snapshot is tied to android/skills commit c72942584fff970dac86ced78b367fce0c441e52, captured on 17 November 2026. Its four skill files establish the intended process, local technical guidance and bundled release history. The repository-root LICENSE.txt supplies the accompanying license terms.

The exact entry file remains available at [https://raw.githubusercontent.com/android/skills/c72942584fff970dac86ced78b367fce0c441e52/play/play-billing-library-version-upgrade/SKILL.md]. These documents establish prescribed behavior, but successful installation, correct generated patches, passing builds and purchase outcomes remain unassessed.

Access & freshness

Costs

The supplied Apache 2.0 license grants no-charge copyright permissions for the covered material. It does not establish the total cost of using the skill.

Assistant subscriptions, model usage, Android CLI pricing, build infrastructure and migration effort are not priced in these files. Operating cost and any time savings are unknown.

Rights

SKILL.md points to LICENSE.txt, which contains Apache License 2.0. It permits reproduction, modification and redistribution subject to its conditions. Redistribution requires a license copy, retention of applicable notices, prominent notices in modified files and preservation of relevant NOTICE attribution if such a file is included.

The license includes a limited contributor patent grant, grants no general trademark rights and provides the work without warranties. The bundled release history separately identifies the Play Billing Library's Android SDK License Agreement; the skill's Apache license should not be assumed to cover the SDK itself.

Freshness

SKILL.md records a last-updated date of 6 October 2026. The newest bundled release entry is PBL 9.1.0, dated 18 June 2026. The files do not establish whether a newer stable billing release exists.

The skill directs the assistant to resolve the latest stable target from a version tool or release notes and generate additional checklist items for version 10 and later. That is a maintenance instruction, rather than evidence that future versions are already covered correctly.

Actions

Before applying a migration, confirm the resolved billing dependency and intended stable target. Reconcile the product-query callback, purchase-history replacements and SDK boundaries against that target's documentation. Review changes for the app's actual products, offers and subscription replacement behavior.

Confirm available Gradle tasks before using the prescribed commands. Supplement build and unit-test checks with billing-specific validation, especially pending-payment transitions, acknowledgment and entitlement handling. The bundled release history explains that pending purchases should receive entitlement only after reaching PURCHASED, and that acknowledgment timing matters.

Use the source folder and its references together, retaining the Apache license and applicable attribution when redistributing them. Treat feature suggestions as candidates for product review rather than automatic additions to the migration.

Evidence for this report

LICENSE.txtnotice · checked 2026-11-17