Search code examples
flutterdartintegration-testingflutter-packages

How to solve 'could not find package integration_test in the Flutter SDK' error


I have an app, it is very simple and I keep getting this error:

pub get failed (server unavailable) -- attempting retry 1 in 1 second... Because bascis depends on integration_test any from sdk which doesn't exist (could not find package integration_test in the Flutter SDK), version solving failed.

I have tried

Pup upgrade, Pub get.

How can I get rid of this error?


Solution

  • I had the same error after changing my channel from master to stable. I was able to fix it by removing (or commenting out) the following library from pubspec.yaml

    dev_dependencies:
    #  integration_test:
    #    sdk: flutter