melihhakanpektas / flutter_midi_pro

MIT License
14 stars 8 forks source link

FAILURE: Build failed with an exception - Don´t run #19

Closed marcosarantesj closed 1 month ago

marcosarantesj commented 1 month ago

[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.

BUILD FAILED in 3s Error: Gradle task assembleDebug failed with exit code 1

melihhakanpektas commented 1 month ago

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.

Screenshot 2024-04-28 021839

3. Open the SDK Tools tab and click on the Show Package Details checkbox.

Screenshot 2024-04-28 022433

4. From the list, select the CMake version 3.22.1 under the CMake section and click the Apply button.

Screenshot 2024-04-28 022521

5. Confirm the installation. Once the installation is complete, the build should succeed.