1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] flutter_tools.stamp rebuilds automatically after deletion (want to fix the Flutter...

Discussão em 'Mobile' iniciado por Stack, Outubro 16, 2024 às 16:52.

  1. Stack

    Stack Membro Participativo

    so i was having this error :

    ERROR: Dio error: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.

    DartError: DioException [connection error]: The connection errored: The XMLHttpRequest onError callback was called. This typically indicates an error on the network layer. This indicates an error which most likely cannot be solved by the library.

    and i finally found a fix on stackover flow

    How to solve flutter web api cors error only with dart code?

    1- Go to flutter\bin\cache and remove a file named: flutter_tools.stamp

    2- Go to flutter\packages\flutter_tools\lib\src\web and open the file chrome.dart.

    3- Find '--disable-extensions' and comment it

    4- Add '--disable-web-security'

    but after multiple trys i found no luck so check my flutter_tools.stamp if it was there and found out it was there after deletion and each time i delete it andorid studio rebuild it again so kindly tell me how can i delete it permanantly or any alternative solution for my error ?

    [​IMG]

    I want a fix for my error of XMLHttpRequest

    Continue reading...

Compartilhe esta Página