Execution failed for task ':react-native-iap:compilePlayDebugKotlin'.
"react-native-iap": "^13.0.4", "react-native": "0.81.0", "react": "19.1.0", "node": ">=18"
None Eco, pure RN cli.
FAILURE: Build failed with an exception.
- What went wrong: Execution failed for task ':react-native-iap:compilePlayDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Compilation error. See log for more details
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
BUILD FAILED in 19s error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 No modules to process in combine-js-to-schema-cli. If this is unexpected, please check if you set up your NativeComponent correctly. See combine-js-to-schema.js for how codegen finds modules.
Btw, I tried to upgrade to latest version with Nitro, and keep getting problem with Nitro not initiated failures. The most recent attempt says Nitro was not even in the final bundle.
The build error you’re seeing with [email protected] is due to incompatibility with the modern React Native 0.81 toolchain.
💡 Explanation
-
[email protected]was built for older React Native versions (around 0.72–0.76). -
React Native 0.81 now ships with:
- Android Gradle Plugin 8.5+
- Kotlin 2.x+
- JDK 17 which are not supported by v13.x.
-
The message
No modules to process in combine-js-to-schema-cliis harmless — it simply means no TurboModules were found.
⚙️ Regarding Nitro / New Architecture
Starting from v14, react-native-iap is migrated to NitroModules (a modernized bridge layer for React Native).
However, Nitro works fine even if you don’t explicitly enable the New Architecture — it’s fully backward-compatible.
If you encountered “Nitro not initiated” or “Nitro not included in final bundle”, that usually means:
- Metro or Gradle cache still references an old version
node_moduleswasn’t re-synced after the upgrade
Please try:
cd android && ./gradlew clean
rm -rf node_modules
npm install
cd android && ./gradlew :app:assembleDebug --no-build-cache
Versions below 14 are no longer maintained due to time and compatibility limits.
You can still use them at your own risk, but for React Native 0.80+ we strongly recommend using v14+ to ensure proper Kotlin and AGP compatibility.
Thanks.