[CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
[CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
[CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
I forgot to add this to the readme. The Fluidsynth library used in Android needs to be built with CMake. Especially for flutter_midi_pro, CMake version 3.22.1 must be installed. To install CMake:
1. Open Android Studio.
2. Go to Tools -> SDK Manager.
3. Open the SDK Tools tab and click on the Show Package Details checkbox.
4. From the list, select the CMake version 3.22.1 under the CMake section and click the Apply button.
5. Confirm the installation. Once the installation is complete, the build should succeed.
[CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property. [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders. [CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property. [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders. [CXX1300] CMake '3.22.1' was not found in SDK, PATH, or by cmake.dir property. [CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 3s Error: Gradle task assembleDebug failed with exit code 1