rn-ldk icon indicating copy to clipboard operation
rn-ldk copied to clipboard

Failed resolution of: Lorg/ldk/structs/Event;

Open fnLog0 opened this issue 2 years ago • 5 comments

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;

fnLog0 avatar Oct 13 '22 11:10 fnLog0

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" } }

fnLog0 avatar Oct 13 '22 11:10 fnLog0

pls try older release. tag v0.8.4 should work

Overtorment avatar Oct 13 '22 19:10 Overtorment

getting the same error with github:BlueWallet/rn-ldk#v0.8.4

fnLog0 avatar Oct 15 '22 19:10 fnLog0

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?

Overtorment avatar Oct 17 '22 08:10 Overtorment

adding implementation files("../../node_modules/rn-ldk/android/libs/LDK-release.aar") to dependencies of android/app/build.gradle fixed this for me

rsbkmr avatar Nov 26 '22 10:11 rsbkmr