142 words
1 minute
Updating Google Play Billing to 6.2.1 in Unity
In July 2024, I needed to update an app to Google Play Billing Library version 6 before the August 31 deadline described in the original post. Updating Unity IAP to 4.12.0 through Package Manager caused the Android build to fail. Other developers reported the same problem in the forum, and a fix was not yet available in that workflow. I rolled back to 4.11.0 and updated the billing library manually.
Roll back Unity IAP to 4.11.0
Select version 4.11.0 in Package Manager.
Download the AAR
Download Billing Library 6.2.1 from Google’s Maven repository.
Replace the AAR
- Copy
billing:6.2.1.aarinto the Unity project’s Assets directory. Unity generates a matching.metafile. - Search the project for the existing
billing:5.2.1.aar. Delete it and its adjacent.metafile. Movebilling:6.2.1.aarandbilling:6.2.1.aar.metainto that directory.
Update build.gradle
Open build.gradle and replace billing:5.2.1 with billing:6.2.1.
That completed the workaround for this project and its 2024 dependency versions.
Updating Google Play Billing to 6.2.1 in Unity
https://blog.coding1024.com/en/posts/76580d95/
Comments
Questions, ideas and experiences are welcome. Please be kind and avoid sharing private information.
Loading comments…