Before submitting a new issue
Bug summary
> Task :react-native-legal:compileDebugKotlin FAILED
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:22:36 Unresolved reference 'Promise'.
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:24:22 None of the following candidates is applicable:
fun File.resolve(relative: File): File
fun File.resolve(relative: String): File
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:26:22 Unresolved reference 'reject'.
This would work if it had this, but without Kotlin was complaining on not being able to find promise
https://github.com/callstackincubator/react-native-legal/blob/main/packages/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt#L3
import com.facebook.react.bridge.Promise
Library version
1.5.0
Environment info
info Fetching system and libraries information...
System:
OS: macOS 15.6
CPU: (10) arm64 Apple M1 Pro
Memory: 139.63 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.18.0
path: ~/.volta/tools/image/node/22.18.0/bin/node
Yarn:
version: 4.9.2
path: ~/.volta/tools/image/yarn/4.9.2/bin/yarn
npm:
version: 11.5.2
path: ~/.volta/tools/image/npm/11.5.2/bin/npm
Watchman:
version: 2025.08.11.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/REDACTED/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.10121639
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 3.4.3
path: /Users/REDACTED/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: ^20.0.0
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.77.2
wanted: ~0.77.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
info React Native v0.81.0 is now available (your project is running on v0.77.2).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.81.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.77.2&to=0.81.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
Steps to reproduce
See above
> Task :react-native-legal:compileDebugKotlin FAILED
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:22:36 Unresolved reference 'Promise'.
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:24:22 None of the following candidates is applicable:
fun File.resolve(relative: File): File
fun File.resolve(relative: String): File
e: file:///Users/REDACTED/REDACTED/node_modules/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt:26:22 Unresolved reference 'reject'.
Reproducible sample code
Before submitting a new issue
Bug summary
This would work if it had this, but without Kotlin was complaining on not being able to find promise
https://github.com/callstackincubator/react-native-legal/blob/main/packages/react-native-legal/android/src/oldarch/java/com/reactnativelegal/ReactNativeLegalModule.kt#L3
import com.facebook.react.bridge.PromiseLibrary version
1.5.0
Environment info
info Fetching system and libraries information... System: OS: macOS 15.6 CPU: (10) arm64 Apple M1 Pro Memory: 139.63 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 22.18.0 path: ~/.volta/tools/image/node/22.18.0/bin/node Yarn: version: 4.9.2 path: ~/.volta/tools/image/yarn/4.9.2/bin/yarn npm: version: 11.5.2 path: ~/.volta/tools/image/npm/11.5.2/bin/npm Watchman: version: 2025.08.11.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.16.2 path: /Users/REDACTED/.rbenv/shims/pod SDKs: iOS SDK: Platforms: - DriverKit 24.5 - iOS 18.5 - macOS 15.5 - tvOS 18.5 - visionOS 2.5 - watchOS 11.5 Android SDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: version: 16.4/16F6 path: /usr/bin/xcodebuild Languages: Java: version: 17.0.16 path: /usr/bin/javac Ruby: version: 3.4.3 path: /Users/REDACTED/.rbenv/shims/ruby npmPackages: "@react-native-community/cli": installed: 20.0.0 wanted: ^20.0.0 react: installed: 18.3.1 wanted: 18.3.1 react-native: installed: 0.77.2 wanted: ~0.77.1 react-native-macos: Not Found npmGlobalPackages: "*react-native*": Not Found Android: hermesEnabled: true newArchEnabled: false iOS: hermesEnabled: true newArchEnabled: false info React Native v0.81.0 is now available (your project is running on v0.77.2). info Changelog: https://github.com/facebook/react-native/releases/tag/v0.81.0 info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.77.2&to=0.81.0 info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".Steps to reproduce
See above
Reproducible sample code