Something that work for me is: Delete your pubspec.lock
, and press ‘Pub Get’ in your pubspec.yaml
, it’ll regenerate pubspec.lock file again and should fix the problem.
More Related Contents:
- How to build signed apk from Android Studio for Flutter
- Generate SHA-1 for Flutter/React-Native/Android-Native app
- Couldn’t locate lint-gradle-api-26.1.2.jar for Flutter project
- I am getting error “cmdline-tools component is missing” after installing Flutter and Android Studio… I added the Android SDK. How can I solve them?
- How to solve SocketException: Failed host lookup: ‘www.xyz.com’ (OS Error: No address associated with hostname, errno = 7)
- How to format DateTime in Flutter
- How to show/hide password in TextFormField?
- How to create Expandable ListView in Flutter
- How to pass a message from Flutter to Native?
- How to build app compliant with Google Play 64-bit requirement?
- Flutter – How to pass custom arguments in firebase dynamic links for app invite feature?
- Flutter: How to fix “A RenderFlex overflowed by pixels ” error?
- When do I use setState in Flutter?
- Android Studio not showing Logcat with Flutter
- ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your flutter PATH. In Flutter
- how to open particular screen on clicking on push notification for flutter
- Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine
- Flutter: go_router how to pass multiple parameters to other screen?
- How can I change the app display name build with Flutter?
- Flutter give container rounded border
- How to add a gradient to a Button in Flutter?
- Flutter: Execution failed for task ‘:app:compileDebugKotlin’
- How to handle app lifecycle with Flutter (on Android and iOS)?
- Flutter TabBar and SliverAppBar that hides when you scroll down
- Flutter – How to download files in WebView?
- Go_Router Pass Object to new route
- Android Studio device list stuck on loading
- unable to execute adb in Ubuntu. Downloaded file is meant for x86-64 while I have i686 [duplicate]
- OpenCv with Android studio 1.3+ using new gradle – undefined reference
- Add Maven repository to build.gradle