Google Play Plugins for Unity provide C# APIs for accessing Play in-game features from within the Unity Engine. These plugins also provide Unity Editor features for building a game before publishing it on Google Play.
The Play Core plugin provides the Play Core Library required by some other Google Play plugins, such as Play Asset Delivery, Play Integrity, Play In-app Reviews, and Play In-app Updates.
This plugin is a support plugin and does not provide any Play in-app features on its own. It will be installed automatically when you install other Google Play plugins that depend on this plugin using OpenUPM or GitHub.
To use the Google Play Core plugin, you must use a supported Unity version:
- All versions of Unity 2019.x, 2020.x, and newer are supported.
- If you use Unity 2018.x, version 2018.4 or newer are supported.
- If you use Unity 2017.x, only Unity 2017.4.40 is supported. All other versions aren't supported.
The following Google Play plugin will be installed automatically when you install the Google Play Core plugin using OpenUPM or when importing the package from GitHub:
- External Dependency Manager plugin for Unity (EDM4U). This plugin resolves AAR dependencies such as the Play Core library.
To install the Google Play Core plugin using Open UPM, follow the instructions to install via package manager or install via command-line.
Alternatively, you can download the latest .unitypackage
from the Google Play Core plugin GitHub releases page and import it using these instructions on the Google APIs for Unity site.
To request features or report issues with the plugin, please use the GitHub issue tracker.
When building an Android App Bundle with Unity's build system (e.g. "File > Build and Run"), Unity may include the monolithic Play Core library in a way that causes conflicts with the new Play libraries included by Google Play Plugins for Unity.
To resolve these conflicts, follow the steps below:
- Enable "Custom Main Gradle Template" in "Android Player > Publishing Settings"
- Enable "Patch mainTemplate.gradle" in "Assets > External Dependency Manager > Android Resolver > Settings"
- Include this empty monolithic Play Core library as a local maven repository
These steps will allow EDM4U to update the mainTemplate.gradle to include the empty monolithic Play Core library as a gradle dependency. This will override the version of the Play Core library included by Unity and resolve the duplicate class errors and manifest merger failures.
Browse other Google Play plugins for Unity.