Developers · Free guide
My build fails because of an SDK
Last checked: 13 November 2026
"SDK" means two different things here. It can be the Android SDK your build uses, or an SDK inside your game (ads, analytics, push, sign-in). Both cause build and upload problems.
A. The build itself fails (Android SDK, NDK, JDK, Gradle)
- In Unity Hub open your editor version, choose Add modules and tick Android Build Support with its sub-modules (OpenJDK, Android SDK & NDK Tools).
- In Unity go to Edit > Preferences > External Tools (on a Mac Unity > Settings) and tick the boxes JDK installed with Unity, Android SDK Tools installed with Unity and Android NDK installed with Unity. Paths typed in by hand, or an old Android Studio install, are the most common cause of "SDK not found", "Failed to find Platform SDK" and "NDK mismatch".
- A Gradle failure prints a long list. Scroll up to the first line that says
Caused byorerror:and search for exactly that line, not the final "Build failed". - If you use custom Gradle templates (Player Settings > Publishing Settings), a template copied from an older Unity version can break a newer build. Turn it off, build once, and re-apply only the changes you really need.
B. Duplicate class and plugin clashes
- Duplicate class errors mean two plugins ship the same Android library. If you use Google's resolver, run Assets > External Dependency Manager > Android Resolver > Force Resolve, and remove the older copy of any plugin that appears twice.
- After updating an ad or analytics plugin, delete the entries in
Assets/Plugins/Androidthat came from the old version before resolving again.
C. Play Console says an SDK version is not allowed
Google reads the dependencies file inside your bundle to find the SDKs you use. When one is outdated or breaks a policy, Play Console shows a message at the top of the Production page or on the Release overview page. An outdated SDK gives a warning (and you cannot release another update using that version once the date has passed); a non-compliant one can get a release rejected.
- Read the message: it names the SDK and the version.
- Find that SDK in your project (the Package Manager,
Assets/Plugins, or the resolver's list). - Update it to the compliant version, or replace or remove it if its maker has no fix.
- Build a new bundle and upload it. Make sure the old bundle with the bad SDK is under Not included in the release.
- If you believe the warning is wrong, contact the SDK's maker and Google Play support with the details.
Source: Google Play: Issues with SDK versions in your app (checked 13 November 2026).
Send us the first Caused by line or the exact Play Console message, your Unity version and the plugin list: a short, exact message is the fastest route to a fix.
Still stuck? Ask us. Simple questions are answered free; for harder problems we send a quote. We reply within 2 working days.
Advice from Kabooshe Games is not a guarantee that Google Play, Amazon or Apple will approve your app. The stores make that decision.