Handle errors in Kotlin Multiplatform SDK

This page covers error handling in the Adapty Kotlin Multiplatform SDK.

Error handling basics

All Adapty SDK methods return results that can be either success or error. Always handle both cases:

Common error codes

Error CodeDescriptionSolution
1000No product IDs foundCheck product configuration in dashboard
1001Network errorCheck internet connection
1002Invalid SDK keyVerify your SDK key
1003Can’t make paymentsDevice doesn’t support payments
1004Product not availableProduct not configured in store

Handle specific errors

Network errors

Purchase errors

Error recovery strategies

Retry on network errors

Fallback to cached data

Next steps