Docs
Troubleshooting
Diagnose plugin resolution, missing bindings, Expo builds and native setup on Android and iOS.
| Symptom | What to check |
|---|---|
npm install cannot find the package, or the shared package is missing |
The package was not generated yet. Run ./gradlew :shared:generateReactNativeBindings first: a fresh clone does not contain it. |
pod install looks for a pod on the public CocoaPods trunk |
The generated package is outside the React Native app. Set packageDirectory to a folder inside it. |
Components do not accept style, or react types are missing |
Same cause: TypeScript and Metro resolve imports from the real location of the files. Move the package inside the app. |
| The plugin cannot be resolved | Declare mavenCentral() in pluginManagement and dependencyResolutionManagement. For a local build of the plugin, add mavenLocal() too. |
| Gradle complains about the version or group | Set group and version on the Kotlin Multiplatform project. |
| The generated component cannot be loaded in Expo Go | Expo Go cannot load native code. Use a development build: npx expo prebuild, then npm run ios or npm run android. |
| A Kotlin version mismatch on Android | Set kotlinVersion in expo-build-properties to a version compatible with your Kotlin Multiplatform app. |
| The TypeScript API is out of date | The exported Kotlin API changed. Run the generation task again. |
If the build still fails, open an issue on the gradle-plugin repository with the failing command and its output.
For setup commands, see Installation. For build settings, see Configuration.