indy-sdk-react-native icon indicating copy to clipboard operation
indy-sdk-react-native copied to clipboard

createWallet is not working.

Open umarpazir11 opened this issue 3 years ago • 4 comments
trafficstars

I am not able to initialize as well as create a wallet. I tried with the following code.

import indy from 'indy-sdk-react-native'; await indy.createWallet({ id: 'wallet-12' }, { key: 'key11' });

and I got this error.

{"a": "IndyError", "b": 0}

I also tried to create a new Agent but all the time I am getting the same above error.

Expo CLI 4.7.2 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 12.18.3 - /usr/local/bin/node npm: 6.14.8 - /usr/local/bin/npm Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8139111 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild npmPackages: expo: ~44.0.2 => 44.0.6 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 react-navigation: ^4.4.4 => 4.4.4 npmGlobalPackages: expo-cli: 4.7.2 Expo Workflow: bare

umarpazir11 avatar Feb 24 '22 13:02 umarpazir11

Hi @umarpazir11,

Thanks for opening the issue. Did you follow the getting started guides and added the required native libraries?

Could you post some logs? That may help debug the problem

TimoGlastra avatar Feb 24 '22 15:02 TimoGlastra

Hi @TimoGlastra,

Yes, I followed this full guideline and added all libs.

https://github.com/hyperledger/aries-framework-javascript/blob/main/docs/setup-react-native.md#prerequisites

and this is my code and output. image

umarpazir11 avatar Feb 24 '22 15:02 umarpazir11

Has anyone faced the same issue?

umarpazir11 avatar Mar 21 '22 11:03 umarpazir11

I got the solution in the android app build.gradle file removes or disable minifyEnabled true from buildTypes it resolved this issue for me.

umarpazir11 avatar Jul 22 '22 06:07 umarpazir11