com.encorekit:encore, at the version Install the SDK names) into your Gradle build, with its own AndroidX and Google Play Billing dependencies. Most projects need nothing extra. This page lists what was measured on 2026-10-29 and what to do where a build fails.
At a glance
The D8 crash on Android
Unity 2022.3 builds Android with Android Gradle Plugin 7.4.2. Its D8 crashes with aNullPointerException on androidx.lifecycle:lifecycle-livedata-core:2.8.7, which the native SDK brings in, and the build fails.
The fix is a newer D8 and R8 for the build, with no change to the Android Gradle Plugin version:
- Open Project Settings → Player → Android → Publishing Settings and turn on Custom Base Gradle Template. Unity creates
Assets/Plugins/Android/baseProjectTemplate.gradle. - Add this
buildscriptblock at the top of that file, above thepluginsblock:
Unity IAP
Unity IAP 4.11 bundles Google Play Billing 5.2.1 (older 4.x ships older Billing, same conflict), and the native SDK needs Billing 8.0.0. The Android manifest merge fails on the twocom.google.android.play.billingclient.version values (measured with Unity IAP 4.11.0):
purchases-unity 10.0.0 also builds with it.
A reward placement never runs a purchase, so the package doesn’t call your billing stack. The conflict is only about which Billing library the build includes.
iOS
There is no publisher step. The package lists theEncoreKit pod for every target of the exported Xcode project, so the app target embeds the framework the game links.