Hello Roberto, thank you for your attention and for your time. I'm using the android's api 31 but from what I understand, I won't be able to write files in the shared storage of the android, only in the private storage that is the directory of my application, with this information I did a test by creating a file in the installation directory of my application and I get something strange in logcat:
I researched about this error and it's something about the logcat buffer, I didn't quite understand.
I confess that using private storage will not solve my problem, I need other applications to see the file, I need to use shared storage. I will continue reading the documents you sent me. Thank you very much.
Yes, I'm using Windows WSL to build my application, I saw that this could mess up the compilation, so I decided to put my project files in the WSL root folder /home/user/myproject, but that didn't solve my problem also it kept denying permission from file write, but it must be because of API and android version 10.