Closed spring321 closed 9 months ago
I'm not gradle professional but in build.gradle, there's an explicit CMake version config. I'm not sure why it is there and what happens if I remove the version specification...
On 0.4.31, I removed the version spec. on build.gradle anyway.
flutter/flutter #75600 seems very similar.
And, it seems that I can specify CMake version like version "3.18.1+"
though it may hit gradle/gradle #16555.
New flutter projects such as pdfrx's example already has the following gradle version. Not affected by the gradle issue anyway.
0.4.37 contains the fix explained above:
Gradle task assembleAppRelease failed with exit code 1
[CXX1300] CMake '3.18.1' was not found in SDK, PATH, or by cmake.dir property. [CXX1301] - CMake '3.22.1' found in SDK did not satisfy requested version.
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':pdfrx'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 2s Running Gradle task 'assemblePadRelease'...
Gradle task assemblePadRelease failed with exit code 1
flutter doctor --verbose [✓] Flutter (Channel stable, 3.16.5, on macOS 13.4 22F66 darwin-arm64 (Rosetta), locale zh-Hans-CN) • Flutter version 3.16.5 on channel stable at /Users/spring/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 78666c8dc5 (5 weeks ago), 2023-12-19 16:14:14 -0800 • Engine revision 3f3e560236 • Dart version 3.2.3 • DevTools version 2.28.4 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn