Open insinfo opened 2 years ago
PS C:\MyDartProjects\riodasostras\riodasostrasapp_mob> flutter build windows
Building with sound null safety
CMake Error at flutter/ephemeral/.plugin_symlinks/native_pdf_renderer/windows/DownloadProject.cmake:179 (message):
Build step for pdfium failed: 1
Call Stack (most recent call first):
flutter/ephemeral/.plugin_symlinks/native_pdf_renderer/windows/CMakeLists.txt:16 (download_project)
Building Windows application...
Unable to generate build files
PS C:\MyDartProjects\riodasostras\riodasostrasapp_mob>
PS C:\MyDartProjects\riodasostras\riodasostrasapp_mob> flutter doctor -v
[√] Flutter (Channel stable, 2.8.1, on Microsoft Windows [versão 10.0.22000.376], locale pt-BR)
• Flutter version 2.8.1 at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (4 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at C:\Users\isaque\AppData\Local\Android\sdk
• Platform android-32, build-tools 32.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.3)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.11.31702.278
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2020.3)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[√] VS Code (version 1.63.2)
• VS Code at C:\Users\isaque\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.32.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [versão 10.0.22000.376]
• Chrome (web) • chrome • web-javascript • Google Chrome 97.0.4692.71
• Edge (web) • edge • web-javascript • Microsoft Edge 96.0.1054.62
• No issues found!
PS C:\MyDartProjects\riodasostras\riodasostrasapp_mob>
the download_project error is fixed here: https://github.com/rbcprolabs/packages.flutter/pull/233
I didn't quite understand what you said, but it seems that an update has not yet been released that solves this problem.
In my case v4.0.0 works but v4.0.1 fails on windows with above error. I can't update to v5 and test that because in my case it is a dependency of a dependency.
I solved using the following in pubspec.yaml:
dependency_overrides:
native_pdf_renderer: 4.0.0
not work on windows flutter: Error getting printing info: MissingPluginException(No implementation found for method open.document.data on channel io.scer.native_pdf_renderer)