espresso3389 / pdfrx

pdfrx is yet another PDF viewer implementation that built on the top of pdfium. The plugin currently supports Android, iOS, Windows, macOS, Linux, and Web.
MIT License
60 stars 36 forks source link

Could not find Ninja on PATH or in SDK CMake bin folders #146

Closed zynzszyn521 closed 3 weeks ago

zynzszyn521 commented 3 weeks ago

I use pdfrx: ^1.0.58 and distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip , but my project show error

[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.
[CXX1416] Could not find Ninja on PATH or in SDK CMake bin folders.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':pdfrx'.
> com.android.builder.errors.EvalIssueException: [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.

* Get more help at https://help.gradle.org

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

my flutter doctor

PS D:\MyProject\esop> flutter doctor
Flutter assets will be downloaded from https://mirrors.tuna.tsinghua.edu.cn/flutter. Make sure you trust this source!
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.2, on Microsoft Windows [版本 10.0.26100.1], locale zh-CN)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.9.6)
[√] Android Studio (version 2023.1)
[√] VS Code (version 1.88.1)
[√] Connected device (4 available)
[√] Network resources

• No issues found!