I have a Flutter application that extracts data from a MySql table using a PHP script. It works perfectly.
For a few days now, if I recompile the application, it gives me this error when I launch the apk: "Error: ClientException with SocketException: Host search failed: 'www.miosito.it (Operating system error: No address associated with the host name, errno= 7), url=https: //www.miosito.it/script/prova.php".
But if I run it with the emulator it works perfectly.
My configuration is this:
Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.19045.5011], locale it-IT)
Windows Version (Installed version of Windows is version 10 or higher)
Android toolchain - develop for Android devices (Android SDK version 35.0.0)
Chrome - develop for the web
Android Studio (version 2024.1)