packages.flutter icon indicating copy to clipboard operation
packages.flutter copied to clipboard

: error G5FE39F1E: Type 'DecoderCallback' not found.

Open Yoda-Man opened this issue 2 years ago • 4 comments

Describe the bug When trying to build to windows I am getting the following error

Launching lib\main.dart on Windows in debug mode... windows/flutter/CMakeLists.txt does not use FLUTTER_TARGET_PLATFORM, updating. CMake Deprecation Warning at CMakeLists.txt:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.

Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.27/Modules/ExternalProject.cmake:3136 (message): The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is not set. The policy's OLD behavior will be used. When using a URL download, the timestamps of extracted files should preferably be that of the time of extraction, otherwise code that depends on the extracted contents might not be rebuilt if the URL changes. The OLD behavior preserves the timestamps from the archive instead, but this is usually not what you want. Update your project to the NEW behavior or specify the DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this robustness issue. Call Stack (most recent call first): C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.27/Modules/ExternalProject.cmake:4345 (_ep_add_download_command) CMakeLists.txt:9 (ExternalProject_Add) This warning is for project developers. Use -Wno-dev to suppress it.

/C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart(24,55): error G5FE39F1E: Type 'DecoderCallback' not found. [C:\Mobile\digidata\build\windows\x64\flutter\flutter_assemble.vcxproj] /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart(40,7): error G5FE39F1E: Type 'DecoderCallback' not found. [C:\Mobile\digidata\build\windows\x64\flutter\flutter_assemble.vcxproj] /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart(24,55): error G93EAFBA7: 'DecoderCallback' isn't a type. [C:\Mobile\digidata\build\windows\x64\flutter\flutter_assemble.vcxproj] /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart(40,7): error G93EAFBA7: 'DecoderCallback' isn't a type. [C:\Mobile\digidata\build\windows\x64\flutter\flutter_assemble.vcxproj] C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Mobile\digidata\build\windows\x64\CMakeFiles\b21556f3db189beffdc5aa2a80c275a0\flutter_windows.dll.rule;C:\Mobile\digidata\build\windows\x64\CMakeFiles\2dcd5d3868b6cede2a3c2396dfe52ea6\flutter_assemble.rule;C:\Mobile\digidata\windows\flutter\CMakeLists.txt' exited with code 1. [C:\Mobile\digidata\build\windows\x64\flutter\flutter_assemble.vcxproj] Exception: Build process failed.

Exited (1).

To Reproduce Steps to reproduce the behavior: flutter build windows

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

Yoda-Man avatar Nov 20 '23 08:11 Yoda-Man

Started getting the error after upgrading to the latest version of Flutter

Yoda-Man avatar Nov 20 '23 08:11 Yoda-Man

I also get the error building to Android

/C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: Type 'DecoderCallback' not found. ImageStreamCompleter load(PdfPageImageProvider key, DecoderCallback decode) => ^^^^^^^^^^^^^^^ /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart:40:7: Error: Type 'DecoderCallback' not found. DecoderCallback decode) async { ^^^^^^^^^^^^^^^ /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart:24:55: Error: 'DecoderCallback' isn't a type. ImageStreamCompleter load(PdfPageImageProvider key, DecoderCallback decode) => ^^^^^^^^^^^^^^^ /C:/Users/trust/AppData/Local/Pub/Cache/hosted/pub.dev/pdfx-2.4.0/lib/src/viewer/pdf_page_image_provider.dart:40:7: Error: 'DecoderCallback' isn't a type. DecoderCallback decode) async { ^^^^^^^^^^^^^^^ Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • Where: Script 'C:\Flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1350

  • What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command 'C:\Flutter\bin\flutter.bat'' finished with non-zero exit value 1

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

Yoda-Man avatar Nov 20 '23 08:11 Yoda-Man

Duplicate of: #448

urbanjagodic avatar Nov 20 '23 09:11 urbanjagodic

Please check the new version on PubDev, it has been updated to 2.6.0 and includes the fix for the DecoderCallback issue.

ManuelRauber avatar Feb 11 '24 08:02 ManuelRauber