First you must install:
Afterwards you must run:
$ mise plugins install android-sdk https://github.com/Syquel/mise-android-sdk.git
$ mise install java yq jq # Install first because they are required by others tools
$ mise install
$ sdkmanager "platform-tools" "build-tools;33.0.3" "platforms;android-33" # Only if you want to build for android
$ yes | flutter doctor --android-licenses # Only if you want to build for android
At this point you should be ready to build app for android at least, please don't
use flutter upgrade
since this can break installation in some ways.
If you don't want to use mise you can follow the instructions from official website. https://docs.flutter.dev/get-started/install/macos/mobile-ios?tab=download#install-the-flutter-sdk
To start PIYP, run the following command:
flutter run
You can create an android emulator using these commands:
$ sdkmanager "platform-tools" "build-tools;33.0.3" "platforms;android-33"
$ sdkmanager --install "system-images;android-33;google_apis;x86_64"
$ avdmanager create avd --name Pixel_8_Pro_AVD --package "system-images;android-33;google_apis;x86_64" --device "pixel_8_pro"
Then you must launch the emulator:
$ flutter emulators --launch Pixel_8_Pro_AVD
Finally you can now deploy PIYP on your emulator with:
$ flutter run
Refer to asdf-flutter troobleshooting.
If you have an error with grade, try to run the following commands:
$ rm -rf ~/.gradle/ ~/.pub-cache
$ flutter pub get