Closed x0axz closed 2 years ago
Resolved it.
Starting in Android 11, apps cannot create their own app-specific directory on external storage. To access the directory that the system provides for your app, call getExternalFilesDirs()
.
getExternalFilesDirs https://developer.android.com/reference/android/content/Context#getExternalFilesDirs(java.lang.String)
To get private ExternalStorage you can use this:
Android.App.Application.Context.GetExternalFilesDir(null).AbsolutePath;
So, in Services/PoolConfigurator.cs
, change
Path.Combine(FileSystem.CacheDirectory, config.Value);
to
Path.Combine(Android.App.Application.Context.GetExternalFilesDir(FileSystem.CacheDirectory).AbsolutePath, config.Value);
Have a look into this Issue too, it'll be helpful: https://github.com/hyperledger/aries-mobile-agent-xamarin/issues/53.
Hi,
I'm trying to upload my app to Google Play Store, but it isn't allowing me to publish it.
When I tried to upgrade the API level to 30, I'm keep getting an IO error while trying to create a pool. On Android 30 can't create a pool, however with Android 29, it works fine.
AndroidManifest.xml
Error Logs