Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Getting Hyperledger.Indy.IOException: An IO error occurred. while running Mobile Agent in Android 10 #195

Open
anji22 opened this issue Aug 19, 2021 · 6 comments

Comments

@anji22
Copy link

anji22 commented Aug 19, 2021

Unable to write the .indyClient files in the Android 10 device.Getting below issue.All permissions are granted
Hyperledger.Indy.IOException: An IO error occurred.
at Hyperledger.Aries.Ledger.DefaultPoolService.CreatePoolAsync (System.String poolName, System.String genesisFile) [0x0002d] in D:\a\1\s\src\Hyperledger.Aries\Ledger\DefaultPoolService.cs:59
at SSIWalletApplication.Services.PoolConfigurator.ConfigurePoolsAsync () [0x0023b] in C:\Users....\Documents\SSIMasterBranch\src\SSIWalletApplication\SSIWalletApplication\Services\PoolConfigurator.cs:54
[0:] SSIWalletApplication.Services.PoolConfigurator: Critical: Couldn't create pool config

@sahil-khanna
Copy link

@anji22
Copy link
Author

anji22 commented Aug 26, 2021

@anji22 check this

hyperledger/aries-mobile-agent-xamarin#19 (comment)

@sahil-khanna
Thanks for the information. it's working now.

@sahil-khanna
Copy link

@anji22, you may close this issue if it's resolved.

@matrwolff33
Copy link

Apologize if this should be a separate ticket, but facing this issue with Android 11 since new apps must be submitted targeting API 30. It seems the legacy external storage tag is ignored with 11.

@sahil-khanna
Copy link

sahil-khanna commented Oct 20, 2021

@matrwolff33 , you may refer to this

hyperledger-archives/indy-sdk#2382 (comment)

@naman20sharma
Copy link

@matrwolff33 Adding the following line should work in your mainactivity,cs, right before loading indy libraries.
Android.Systems.Os.Setenv("EXTERNAL_STORAGE", GetExternalFilesDir(null).AbsolutePath, true); JavaSystem.LoadLibrary("c++_shared");
@TimoGlastra did the same in RN-aries application.
After this you won't need android:requestLegacyExternalStorage="true" flag in your manifest file.

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

4 participants