I am running an AI app on an Android 11 phone. The app writes to a file on the phone and has been working for 2 or 3 years. But when I made a small change last week and re-installed it on my phone I got the above error.
I have seen other posts about asking for permissions but have never had to do this. I believe this is the first time I have re-installed the app since my phone was upgraded to Android 11.
I notice in my phone "Settings>Privacy>Permissions Manager>Files and media" it shows "Allow access to media only". In another AI app where I write to a file on my phone it shows "Allow management of all files" - I have not re-installed this app since my phone was upgraded to Android 11.