Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup instuctions missing for projects with Kotlin #1888

Open
mayank-01-ms opened this issue Feb 17, 2025 · 2 comments
Open

Setup instuctions missing for projects with Kotlin #1888

mayank-01-ms opened this issue Feb 17, 2025 · 2 comments

Comments

@mayank-01-ms
Copy link

mayank-01-ms commented Feb 17, 2025

For the JSI installation in the installation docs for the Android section (https://watermelondb.dev/docs/Installation#android-react-native), the steps are missing for the Kotlin projects. It says to edit MainApplication.java but now newer projects have MainApplication.kt.

Getting this error when building
BUILD FAILED in 17s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
D:\Mayank\Projects\node_modules@nozbe\watermelondb\native\android-jsi\src\main\java\com\nozbe\watermelondb\jsi\WatermelonDBJSIPackage.java:3: error: cannot find symbol
import com.facebook.react.bridge.JSIModulePackage; ^ symbol: class JSIModulePackage location: package com.facebook.react.bridge D:\Mayank\Projects\node_modules@nozbe\watermelondb\native\android-jsi\src\main\java\com\nozbe\watermelondb\jsi\WatermelonDBJSIPackage.java:4: error: cannot find symbol
import com.facebook.react.bridge.JSIModuleSpec; ^ symbol: class JSIModuleSpec location: package com.facebook.react.bridge D:\Mayank\Projects\node_modules@nozbe\watermelondb\native\android-jsi\src\main\java\com\nozbe\watermelondb\jsi\WatermelonDBJSIPackage.java:11: error: cannot find symbol
public class WatermelonDBJSIPackage implements JSIModulePackage { ^ symbol: class JSIModulePackage D:\Mayank\Projects\node_modules@nozbe\watermelondb\native\android-jsi\src\main\java\com\nozbe\watermelondb\jsi\WatermelonDBJSIPackage.java:13: error: cannot find symbol public List getJSIModules(ReactApplicationContext reactApplicationContext, JavaScriptContextHolder jsContextHolder) { ^ symbol: class JSIModuleSpec location: class WatermelonDBJSIPackage D:\Mayank\Projects\node_modules@nozbe\watermelondb\native\android-jsi\src\main\java\com\nozbe\watermelondb\jsi\WatermelonDBJSIPackage.java:12: error: method does not override or implement a method from a supertype @OverRide ^ 5 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':watermelondb-jsi:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details. * Try: > Run with --info option to get more log output. > Run with --scan to get full insights. BUILD FAILED in 17s.

@Rohit3523
Copy link

Waiting for kotlin guide too

@mayank-01-ms
Copy link
Author

@radex @rozPierog @mobily @paulrostorp Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants