Skip to main content

Posts

Showing posts with the label Unity

Fixing Start.io Unity Build Errors: Gradle & NoClassDefFoundError

  There is rarely a frustration more acute in game development than a "Build Successful" notification followed immediately by a runtime crash. If you are integrating the Start.io (formerly StartApp) SDK into Unity, you have likely encountered the infamous  java.lang.NoClassDefFoundError  or cryptic Gradle build failures. These errors often appear during the final stages of the build process or, worse, strictly in Release builds while Debug builds run perfectly. This guide provides a definitive technical solution to resolve Start.io dependencies in Unity, specifically addressing Android Gradle conflicts and R8/ProGuard stripping issues. The Root Cause: Why  NoClassDefFoundError  Happens To fix the error permanently, you must understand the architecture failure. Unity runs on C# (Mono/IL2CPP), but Android plugins run on Java/Kotlin. When you call the Start.io SDK from C#, you are bridging two different runtime environments. The  NoClassDefFoundError  occ...

Solving "Duplicate Class" & Adapter Mismatches When Updating IronSource SDK

  Few things derail a release sprint faster than a dependency conflict immediately following an SDK update. When upgrading the IronSource (LevelPlay) SDK—particularly when jumping major versions (e.g., v7.x to v8.x/v9.x)—Unity developers frequently encounter Gradle build failures or iOS linker errors. The most common symptom on Android is the dreaded  Duplicate class  error: java.lang.RuntimeException: Duplicate class com.ironsource.mediationsdk.utils.IronSourceUtils found in modules jetified-mediationsdk-8.0.0-runtime.jar and jetified-mediationsdk-7.9.0-runtime.jar Or, you may see vague errors regarding  CommandInvokationFailure: Gradle build failed , accompanied by complaints about  program type already present . This guide provides a rigorous technical breakdown of why this persistence occurs despite Unity's package management and offers a definitive, step-by-step solution to resolve adapter mismatches and duplicate dependencies. The Root Cause: EDM4U and Per...