- You have Android 16.0 "Baklava" (API Level 36.1) installed
- You have Android Build Tools and Command-line tools installed
- You have Xcode updated to 26.1
Install Flutter as described here: https://docs.flutter.dev/install/with-vs-code
Run flutter doctor -v to verify the installation.
Force the Flutter version to 3.35.7 so that we are all on the same Flutter version and can use the same Android and iOS SDKs.
- Find the
flutterdir withwhich flutter. - Go to the dir and checkout version 3.35.7
git checkout 3.35.7. - Download the SDK by running
flutter doctor.
Run flutter doctor --android-licenses.
- Install the dependencies with
flutter pub get. - Clean the build folder with
flutter clean. (optional) - Re-add ios and android platforms with
flutter create --platforms=ios,android ..
- Go to ios folder
- Recreate the Podfile with
pod init. - Install the pods with
pod install.
If you don't have
podyet, install it withbrew install cocoapods.
First time only:
-
Open Runner.xcworkspace in XCode with
xed ./ios/Runner.xcworkspace. -
Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
-
Run the app with
flutter run lib/main.dart