Skip to content
HyperKit

Troubleshooting

This page collects commonly encountered issues when integrating or building HyperKit, and the recommended fixes. If your problem is not listed here, reach out to Hypercell support.


java.lang.OutOfMemoryError: Java heap space during Android build

The Android build fails with an exception similar to:

Exception in thread "Daemon client event forwarder"
java.lang.OutOfMemoryError: Java heap space

The error typically appears during the R8 code-shrinking step, sometimes earlier inside the Gradle daemon.

Unity’s default Maximum JVM heap size is 4096 MB. That default is borderline once HyperKit’s full ad mediation stack is added (AppLovin MAX + AdMob + Amazon + Facebook). R8 performs whole-program analysis (tree shaking + obfuscation) and must hold most of the class graph in memory simultaneously, so the working set can exceed the 4 GB default and the build OOMs during minification.

  1. In Unity, open Edit → Preferences → External Tools (on macOS: Unity → Settings → External Tools).
  2. Scroll to the Android section.
  3. Set Maximum JVM heap size, Mbytes to 8192.
  4. Rebuild the project.
  • Minimum safe: 6144 MB
  • Recommended: 8192 MB
  • Higher (12288 / 16384) is fine if your machine has enough RAM; it does not change build output, only build-time memory headroom.
  • The setting is per-machine (stored in Unity Editor prefs), not per-project. Every developer / build agent on the project needs to apply it independently.

iOS build fails or the app crashes after an Xcode update (seen with Xcode 27)

iOS builds made after an Xcode update. Every case we have confirmed so far was built with Xcode 27. We first saw them in October 2026, when macOS updates moved studio machines and our CI to Xcode 27. We have not confirmed failures with Xcode 26, but its iOS 15.0 deployment target limit (see below) can affect pods there too.

This is a temporary workaround. A fix is planned for an upcoming HyperKit update, and we will update this section once it is available.

  • Xcode 27 builds with the iOS 27 SDK. Apple requires apps built with this SDK to adopt the UIScene life cycle, otherwise they won’t launch (TN3187).
  • Unity added UIScene support to 2022.3.72f1+, 6000.0.68f1+ and 6000.3.8f1+ (Unity announcement). Unity 6.2 (6000.2.x) is not on that list. Our own Unity 6000.2.15f1 builds made with Xcode 27 crashed on iPad.
  • Apple lists iOS 15.0 as the lowest deployment target for Xcode 27, and also for Xcode 26.5 and 26.6 (Apple system requirements). With Xcode 27 we saw the build stop on pods set below 15.0.
  • Building with Xcode 27: you need a Unity version with UIScene support (2022.3.72f1+, 6000.0.68f1+ or 6000.3.8f1+). For HyperKit we recommend Unity 6.3: we build and test HyperKit on 6000.3.26f1.
  • Building with Xcode 26: the UIScene requirement does not apply yet, so it is not a reason to upgrade Unity. Two things will make Xcode 27 unavoidable: Apple does not list macOS 27 as supported for Xcode 26, and starting April 2027 App Store Connect accepts iOS apps only if they are built with the iOS 27 SDK or later (Apple announcement).
  • Xcode stops on pods whose minimum iOS version is below 15.0.
  • After moving to Unity 6.3, a Release archive fails to link with Undefined symbols for AppMetricaLibraryAdapter.
  • After moving to Unity 6.3, the build succeeds but the app crashes in Yandex/DivKit font code (MACDivKitFontProvider in the crash stack).
  1. Unity 6000.3.26f1 (6.3 LTS, our recommended and tested version for HyperKit), with Target minimum iOS Version set to 15.0.
  2. All pods at iOS 15.0 or higher.
  3. BUILD_LIBRARY_FOR_DISTRIBUTION = NO for the AppMetrica* pods and DivKitBinaryCompatibilityFacade. Unity 6.3 no longer sets this for pods, which causes the AppMetrica link error. On our games the DivKit font crash also stopped once the facade setting was in place.

The Podfile block in the Fix below takes care of items 2 and 3.

  1. Export the iOS project from Unity.
  2. Open the Podfile in the exported Xcode project and add the block below at the end of the file.
  3. Run pod install in the exported project folder.
  4. Build and archive from the .xcworkspace.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name.start_with?('AppMetrica') || target.name == 'DivKitBinaryCompatibilityFacade'
config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'NO'
end
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 15.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
end
end
end
end

If the Podfile already has a post_install block, do not add a second one. Put the installer.pods_project.targets.each … end loop at the very end of the existing block, after your own settings, so they cannot override it.

  • Unity rewrites the Podfile on every export, so repeat steps 2–4 after each export, or add them to your CI build script.
  • The current stable HyperKit release does not support Android builds on Unity 6.3 yet. If the same project ships Android, contact Hypercell support before moving it to Unity 6.3.
  • If the build still fails or the crash continues, send the build log or crash report to Hypercell support.

Build fails on MAX settings validation (consent flow)

If a build stops during HyperKit’s settings validation with a message about MAX settings (for example [HyperKit] Fail validating settings with reasons: MAX Quality service is enabled, please turn it off), the cause is AppLovin’s MAX consent flow being enabled. The wording can mention “Quality service”, but the setting to turn off is the consent flow, not Quality Service. HyperKit manages user consent through Gamestoty, so MAX’s own consent flow has to stay off.

  1. In Unity, open AppLovin → Integration Manager → Privacy Settings.
  2. Uncheck Enable MAX Terms and Privacy Policy Flow.
  3. Build again.

Screenshot: Fix

  • The same validation also checks AppLovin auto-update. If the message mentions auto-update, turn off AppLovin’s automatic updates in the Integration Manager as well.

Package [com.google.play.core@x.y.z-hotfix.z] cannot be found when resolving packages

After integrating HyperKit into a new project, or updating an existing project to a newer HyperKit version, Unity Console shows errors similar to:

An error occurred while resolving packages:
Package com.google.play.review@1.8.5-hotfix.2 has invalid dependencies or related test packages:
com.google.play.core (dependency): Package [com.google.play.core@1.8.7-hotfix.2] cannot be found
Package com.hypercell.hyperkit@1.5.12 has invalid dependencies or related test packages:
com.google.play.core (dependency): Package [com.google.play.core@1.8.7-hotfix.2] cannot be found

The exact package names and versions vary release-to-release, but the pattern is always the same: a com.google.play.* package with a -hotfix.N suffix cannot be found.

HyperKit ships custom hotfix builds of some Google Play Unity packages (currently com.google.play.core and com.google.play.review). These versions are published only to the Hypercell registry at https://packages.hypercell.pro/.

If your Packages/manifest.json has another scoped registry (commonly OpenUPM) that declares more specific scopes under com.google.play.* — for example, listing com.google.play.core or com.google.play.common explicitly — Unity routes those packages to that registry instead of Hypercell’s. Unity always prefers the longer (more specific) scope on overlap, and the hotfix versions don’t exist outside Hypercell’s registry, so resolution fails.

Open Packages/manifest.json and remove the conflicting scopes from any non-Hypercell scopedRegistries entry. Typically that means deleting com.google.play.core, com.google.play.common, and com.google.play.review from the OpenUPM block so they fall through to Hypercell’s parent scope com.google.play.

Example — before:

{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.google.play.appupdate",
"com.google.play.core",
"com.google.play.common"
]
}

after:

{
"name": "package.openupm.com",
"url": "https://package.openupm.com",
"scopes": [
"com.google.play.appupdate"
]
}

Keep any Google Play packages you depend on directly that HyperKit doesn’t ship (e.g., com.google.play.appupdate) — only remove the scopes that overlap with HyperKit’s dependencies.

Make sure the Hypercell entry covers the parent scope com.google.play:

{
"name": "HyperCell Packages",
"url": "https://packages.hypercell.pro",
"scopes": [
"com.hypercell",
"com.google.play",
...
]
}

After saving the manifest:

  1. Delete Packages/packages-lock.json so Unity rebuilds it from scratch.
  2. Reopen the project. Unity re-resolves and downloads the hotfix versions from Hypercell.

If the error persists, also delete Library/PackageCache/com.google.play.core@* and Library/PackageCache/com.google.play.common@*, then reopen the project.

Open the working version’s Packages/packages-lock.json (from before the broken update). Each com.google.play.* entry includes a "url" field showing which registry served it. If any of those com.google.play.* packages list a non-packages.hypercell.pro URL, this is the scope-precedence conflict and the fix above applies.


The game runs without an internet connection. Is that supported?

Yes. A connection is not required to launch or play, and HyperKit reaches its normal initialized state offline, including on a first launch right after install.

The build embeds the Gamestoty config, and the last config the device fetched stays cached on disk. Without a network the config request gives up after 5 seconds, the SDK logs the failure, loads the embedded or cached copy and carries on.

  • No ads. Mediation has nothing to serve without a connection.
  • No immediate analytics delivery. Firebase keeps events on the device and uploads them once the connection returns.
  • Remote config and A/B assignment stay on the copy shipped with the build until the game runs a session online.
  • Don’t gate your game behind a connectivity check of your own. Nothing in the SDK needs a connection to initialize.
  • During QA, run at least one online session per build, otherwise the events never reach Firebase or the Hypercell dashboard.
HyperKit never reaches Initialized

The loader scene waits on HyperKit.Initialized and it does not turn true.

Part of the wait is paced by the player: the CMP consent dialog in the EEA, and the ATT prompt on iOS. On a slow network the remote config request adds up to 5 seconds on top. A few seconds on a cold start is expected.

Keep the gate. There is no “init failed” state to fall back from, because every step has its own fallback: remote config falls back to the copy baked into the build, a CMP error falls through to the default consent path, and Firebase initializes asynchronously without blocking the rest.

Don’t replace the gate with a short timeout that lets the player through, since it can fire while the consent dialog is still on screen. If you want insurance against a genuinely stuck SDK, report it instead of bypassing it: log the case after 30 seconds and send it to Hypercell support.

If you do let the player in before initialization

Section titled “If you do let the player in before initialization”

Safe to call:

  • HyperKit.Logger is always available.
  • HyperKit.Analytics queues events and handlers and replays them once analytics is live.
  • HyperKit.Ads answers with no-ops: ready checks return false and show callbacks fire with false.

Throws InvalidOperationException("HyperKit is not initialized") until the gate opens: HyperKit.Data, HyperKit.UA, HyperKit.AppStore, HyperKit.BuildInfoService, HyperKit.IAP.