rn-ldk
rn-ldk copied to clipboard
Failed resolution of: Lorg/ldk/structs/Event;
Error: Requiring module "node_modules/rn-ldk/src/index.tsx", which threw an exception: Error: Exception in HostObject::get(propName:RnLdk): java.lang.NoClassDefFoundError: Failed resolution of: Lorg/ldk/structs/Event;
package.json
{ "name": "ldkwallet", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@react-native-async-storage/async-storage": "^1.17.10", "bip39": "^3.0.4", "react": "17.0.2", "react-native": "0.67.4", "rn-ldk": "github:BlueWallet/rn-ldk" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.3", "eslint": "7.14.0", "jest": "^26.6.3", "metro-react-native-babel-preset": "^0.66.2", "react-test-renderer": "17.0.2" }, "jest": { "preset": "react-native" } }
pls try older release.
tag v0.8.4
should work
getting the same error with github:BlueWallet/rn-ldk#v0.8.4
something is not right. this version is used in BW (https://github.com/BlueWallet/BlueWallet/blob/ffc68e29a209506590dbc41f3ad8660f82f00423/package.json#L191) and ti builds and runs alright.
can you post java version & full log?
adding implementation files("../../node_modules/rn-ldk/android/libs/LDK-release.aar")
to dependencies of android/app/build.gradle
fixed this for me