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

Mohamed AbdelraZek picture Mohamed AbdelraZek · Dec 31, 2020 · Viewed 7.1k times · Source

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?

Answer

Texv picture Texv · Jan 7, 2021

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