Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

createWallet is not working. #34

Open
umarpazir11 opened this issue Feb 24, 2022 · 4 comments
Open

createWallet is not working. #34

umarpazir11 opened this issue Feb 24, 2022 · 4 comments

Comments

@umarpazir11
Copy link

umarpazir11 commented Feb 24, 2022

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 umarpazir11 changed the title createWallet is not working. createWallet and initialize is not working. Feb 24, 2022
@umarpazir11 umarpazir11 changed the title createWallet and initialize is not working. createWallet is not working. Feb 24, 2022
@TimoGlastra
Copy link
Contributor

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

@umarpazir11
Copy link
Author

umarpazir11 commented Feb 24, 2022

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
Copy link
Author

Has anyone faced the same issue?

@umarpazir11
Copy link
Author

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

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

No branches or pull requests

2 participants