Giter VIP home page Giter VIP logo

moor_shared's Introduction

moor_shared

An example project to demonstrate how moor can be used on multiple platforms (Web, android, iOS, macOS, Windows and Linux).

Note: You need to install the Android NDK to run this app on Android devices. You can get the NDK in the SDK Manager of Android Studio.

  • Undo/Redo
  • Cross Platform

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

MacOS

iPad

Windows

Web

moor_shared's People

Contributors

bostone avatar jaggernod avatar rodydavis avatar simolus3 avatar tomaszpolanski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moor_shared's Issues

Failed to load dynamic library (126), on Windows

Hi,

when I try to run the moor_shared on Windows I get the following error:

Does anyone know why this happens?

Thanks in advance

This is the output of flutter run -d windows -v

`Microsoft Windows [Version 10.0.17763.1339]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\dk\AndroidStudioProjects\moor_shared>flutter run -d windows -v
[ +94 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +45 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 61a04b1551a8f63b3081267dc7a0bbc16a1b4bf5
[ ] executing: [C:\src\flutter/] git tag --contains HEAD
[ +166 ms] Exit code 0 from: git tag --contains HEAD
[ +2 ms] executing: [C:\src\flutter/] git describe --match ..-..pre --first-parent --long --tags
[ +45 ms] Exit code 0 from: git describe --match ..
-..pre --first-parent --long --tags
[ ] 1.20.0-7.0.pre-22-g61a04b155
[ +9 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +27 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[ +26 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +55 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[ +28 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +37 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +23 ms] executing: C:\Users\dk\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +38 ms] List of devices attached
[ +8 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +7 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +311 ms] Found plugin moor_ffi at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\moor_ffi-0.6.0
[ +35 ms] Found plugin path_provider at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.11
[ +6 ms] Found plugin path_provider_linux at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2
[ +6 ms] Found plugin path_provider_macos at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+3
[ +247 ms] Found plugin moor_ffi at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\moor_ffi-0.6.0
[ +6 ms] Found plugin path_provider at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.11
[ +1 ms] Found plugin path_provider_linux at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_linux-0.0.1+2
[ +1 ms] Found plugin path_provider_macos at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider_macos-0.0.4+3
[ +75 ms] Generating C:\Users\dk\AndroidStudioProjects\moor_shared\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +138 ms] Starting incremental build...
[ +2 ms] Initializing file store
[ +16 ms] Skipping target: gen_localizations
[ +5 ms] complete
[ +5 ms] Launching lib\main.dart on Windows in debug mode...
[ +4 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
C:\Users\dk\AppData\Local\Temp\flutter_tools.c351611f\flutter_tool.57d1a0de\app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--filesystem-scheme org-dartlang-root --initialize-from-dill build\cache.dill.track.dill
[ +36 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop
Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ +45 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[ +1 ms] [
{
"instanceId": "fac9608a",
"installDate": "2019-04-05T15:28:04Z",
"installationName": "VisualStudio/16.4.5+29806.167",
"installationPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community",
"installationVersion": "16.4.29806.167",
"productId": "Microsoft.VisualStudio.Product.Community",
"productPath": "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\devenv.exe",
"state": 4294967295,
"isComplete": true,
"isLaunchable": true,
"isPrerelease": false,
"isRebootRequired": false,
"displayName": "Visual Studio Community 2019",
"description": "Powerful IDE, free for students, open-source contributors, and individuals",
"channelId": "VisualStudio.16.Release",
"channelUri": "https://aka.ms/vs/16/release/channel",
"enginePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service",
"releaseNotes": "https://go.microsoft.com/fwlink/?LinkId=660893#16.4.5",
"thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909",
"updateDate": "2020-03-01T20:48:44.4520867Z",
"catalog": {
"buildBranch": "d16.4",
"buildVersion": "16.4.29806.167",
"id": "VisualStudio/16.4.5+29806.167",
"localBuild": "build-lab",
"manifestName": "VisualStudio",
"manifestType": "installer",
"productDisplayVersion": "16.4.5",
"productLine": "Dev16",
"productLineVersion": "2019",
"productMilestone": "RTW",
"productMilestoneIsPreRelease": "False",
"productName": "Visual Studio",
"productPatchVersion": "5",
"productPreReleaseMilestoneSuffix": "1.0",
"productSemanticVersion": "16.4.5+29806.167",
"requiredEngineVersion": "2.4.1111.43337"
},
"properties": {
"campaignId": "",
"channelManifestId": "VisualStudio.16.Release/16.4.5+29806.167",
"nickname": "",
"setupEngineFilePath": "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe"
}
}
]
[ +5 ms] Building Windows application...
[ +16 ms] <- compile package:moor_shared/main.dart
[ +2 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
C:\Users\dk\AndroidStudioProjects\moor_shared\windows -B build\windows -G Visual Studio 16 2019
[ +332 ms] -- Configuring done
[ +360 ms] -- Generating done
[ +24 ms] -- Build files have been written to: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows
[ +7 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Debug
--target INSTALL --verbose
[ +266 ms] Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
[ ] Copyright (C) Microsoft Corporation. All rights reserved.

       ]

[ +5 ms] Building Windows application...
[ +16 ms] <- compile package:moor_shared/main.dart
[ +2 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S
C:\Users\dk\AndroidStudioProjects\moor_shared\windows -B build\windows -G Visual Studio 16 2019
[ +332 ms] -- Configuring done
[ +360 ms] -- Generating done
[ +24 ms] -- Build files have been written to: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows
[ +7 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Debug
--target INSTALL --verbose
[ +266 ms] Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
[ ] Copyright (C) Microsoft Corporation. All rights reserved.
[ +250 ms] Build started 7/16/2020 1:22:23 PM.
[ +775 ms] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" on node 1 (default targets).
[ ] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" (1) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
[ ] InitializeBuildStatus:
[ ] Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ +32 ms] CustomBuild:
[ ] All outputs are up-to-date.
[ +8 ms] FinalizeBuildStatus:
[ ] Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[ ] Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
[ +2 ms] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ZERO_CHECK.vcxproj" (default targets).
[ +103 ms] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" (1) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
[ +1 ms] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (3) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) on node 1 (default targets).
[ ] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj" (5) on node 1 (default targets).
[ ] InitializeBuildStatus:
[ ] Creating "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ +2 ms] CustomBuild:
[ ] "The build of 'C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\9607ab9e72109af78722f24fddd85df2\flutter_assemble.rule' depends on
'C:\USERS\DK\ANDROIDSTUDIOPROJECTS\MOOR_SHARED\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL' which is produced by the build of
'C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\b6e17abb4ba8435e3d69cbf42ed0eee5\flutter_windows.dll.rule'. The items cannot be built in parallel."
[ +70 ms] Generating C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/flutter_windows.dll,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/flutter_export.h, C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/flutter_windows.h,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/flutter_messenger.h,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/flutter_plugin_registrar.h,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/cpp_client_wrapper/engine_method_result.cc,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc,
C:/Users/dk/AndroidStudioProjects/moor_shared/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, phony
[+1143 ms] [ +121 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +37 ms] [ +57 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] 61a04b1551a8f63b3081267dc7a0bbc16a1b4bf5
[ ] [ ] executing: [C:\src\flutter/] git tag --contains HEAD
[ +185 ms] [ +186 ms] Exit code 0 from: git tag --contains HEAD
[ +1 ms] [ +1 ms] executing: [C:\src\flutter/] git describe --match ..-..pre --first-parent --long --tags
[ +54 ms] [ +54 ms] Exit code 0 from: git describe --match ..
-..pre --first-parent --long --tags
[ ] [ ] 1.20.0-7.0.pre-22-g61a04b155
[ +6 ms] [ +6 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +29 ms] [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/master
[ ] [ ] executing: [C:\src\flutter/] git ls-remote --get-url origin
[ +26 ms] [ +27 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ +57 ms] [ +58 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD
[ +29 ms] [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] master
[ +34 ms] [ +35 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +12 ms] [ +15 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ +54 ms] [ +61 ms] Initializing file store
[ +19 ms] [ +19 ms] Done initializing file store
[ +59 ms] [ +59 ms] Skipping target: gen_localizations
[+1668 ms] [+1668 ms] Skipping target: kernel_snapshot
[+1717 ms] [+1717 ms] Skipping target: unpack_windows
[ +288 ms] [ +288 ms] Skipping target: debug_bundle_windows_assets
[ ] [ ] Persisting file store
[ +12 ms] [ +12 ms] Done persisting file store
[ +14 ms] [ +14 ms] build succeeded.
[ +6 ms] [ +6 ms] "flutter assemble" took 3,874ms.
[ +152 ms] [ +152 ms] ensureAnalyticsSent: 149ms
[ +1 ms] [ +1 ms] Running shutdown hooks
[ +1 ms] [ ] Shutdown hooks complete
[ ] [ ] exiting with code 0
[ +68 ms] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\b6e17abb4ba8435e3d69cbf42ed0eee5\flutter_windows.dll.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\flutter_phony_" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj]
[ +2 ms] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\9607ab9e72109af78722f24fddd85df2\flutter_assemble.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\flutter\cmakefiles\flutter_assemble" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj]
[ +1 ms] FinalizeBuildStatus:
[ ] Deleting file "x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[ ] Touching "x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj" (default targets).
[ +5 ms] InitializeBuildStatus:
[ ] Creating "flutter_wrapper_app.dir\Debug\flutter_.01D23872.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ +1 ms] CustomBuild:
[ ] All outputs are up-to-date.
[ +32 ms] ClCompile:
[ ] All outputs are up-to-date.
[ +26 ms] Lib:
[ ] All outputs are up-to-date.
[ ] flutter_wrapper_app.vcxproj -> C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\Debug\flutter_wrapper_app.lib
[ +12 ms] FinalizeBuildStatus:
[ ] Deleting file "flutter_wrapper_app.dir\Debug\flutter_.01D23872.tlog\unsuccessfulbuild".
[ ] Touching "flutter_wrapper_app.dir\Debug\flutter_.01D23872.tlog\flutter_wrapper_app.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_app.vcxproj" (default targets).
[ +26 ms] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (3) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (6) on node 1 (default targets).
[ ] InitializeBuildStatus:
[ ] Creating "flutter_wrapper_plugin.dir\Debug\flutter_.C8ECED1D.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ ] CustomBuild:
[ ] All outputs are up-to-date.
[ +5 ms] ClCompile:
[ ] All outputs are up-to-date.
[ +4 ms] Lib:
[ ] All outputs are up-to-date.
[ ] flutter_wrapper_plugin.vcxproj -> C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\Debug\flutter_wrapper_plugin.lib
[ +9 ms] FinalizeBuildStatus:
[ ] Deleting file "flutter_wrapper_plugin.dir\Debug\flutter_.C8ECED1D.tlog\unsuccessfulbuild".
[ ] Touching "flutter_wrapper_plugin.dir\Debug\flutter_.C8ECED1D.tlog\flutter_wrapper_plugin.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (default targets).
[ +45 ms] Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (3) is building
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\runner\moor_shared.vcxproj" (7) on node 1 (default targets).
[ +1 ms] InitializeBuildStatus:
[ ] Creating "moor_shared.dir\Debug\moor_shared.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ ] CustomBuild:
[ ] All outputs are up-to-date.
[ +16 ms] ClCompile:
[ ] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\CL.exe /c /IC:\Users\dk\AndroidStudioProjects\moor_shared\windows
/IC:\Users\dk\AndroidStudioProjects\moor_shared\windows\flutter\ephemeral /IC:\Users\dk\AndroidStudioProjects\moor_shared\windows\flutter\ephemeral\cpp_client_wrapper\include /Zi /nologo /W4
/WX /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D _HAS_EXCEPTIONS=0 /D _DEBUG /D UNICODE /D _UNICODE /D "CMAKE_INTDIR="Debug"" /D UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS
/fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"moor_shared.dir\Debug\" /Fd"moor_shared.dir\Debug\vc142.pdb" /Gd /TP /wd4100 /errorReport:queue
C:\Users\dk\AndroidStudioProjects\moor_shared\windows\flutter\generated_plugin_registrant.cc C:\Users\dk\AndroidStudioProjects\moor_shared\windows\runner\flutter_window.cpp
[ +133 ms] generated_plugin_registrant.cc
[ +190 ms] flutter_window.cpp
[ +553 ms] Generating Code...
[ +69 ms] ResourceCompile:
[ ] All outputs are up-to-date.
[ +29 ms] Link:
[ ] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE
/OUT:"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\runner\Debug\moor_shared.exe" /INCREMENTAL /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib
C:\Users\dk\AndroidStudioProjects\moor_shared\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed
/manifestinput:C:\Users\dk\AndroidStudioProjects\moor_shared\windows\runner\runner.exe.manifest /DEBUG
/PDB:"C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/moor_shared.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/moor_shared.lib" /MACHINE:X64 /machine:x64 moor_shared.dir\Debug\Runner.res
[ +1 ms] moor_shared.dir\Debug\flutter_window.obj
[ ] moor_shared.dir\Debug\main.obj
[ ] moor_shared.dir\Debug\run_loop.obj
[ ] moor_shared.dir\Debug\utils.obj
[ ] moor_shared.dir\Debug\win32_window.obj
[ ] moor_shared.dir\Debug\window_configuration.obj
[ ] moor_shared.dir\Debug\generated_plugin_registrant.obj
[ +246 ms] moor_shared.vcxproj -> C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\runner\Debug\moor_shared.exe
[ +2 ms] FinalizeBuildStatus:
[ ] Deleting file "moor_shared.dir\Debug\moor_shared.tlog\unsuccessfulbuild".
[ ] Touching "moor_shared.dir\Debug\moor_shared.tlog\moor_shared.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\runner\moor_shared.vcxproj" (default targets).
[ +4 ms] InitializeBuildStatus:
[ ] Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ +1 ms] CustomBuild:
[ ] All outputs are up-to-date.
[ ] FinalizeBuildStatus:
[ ] Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
[ ] Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (default targets).
[ +4 ms] InitializeBuildStatus:
[ ] Creating "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[ +41 ms] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\1f4d6e2193f10ab998fca2a8a64594dc\INSTALL_force.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\cmakefiles\install_force" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj]
[ +8 ms] PostBuildEvent:
[ ] setlocal
[ ] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
[ ] if %errorlevel% neq 0 goto :cmEnd
[ ] :cmEnd
[ ] endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[ ] :cmErrorLevel
[ ] exit /b %1
[ ] :cmDone
[ ] if %errorlevel% neq 0 goto :VCEnd
[ ] :VCEnd
[ +50 ms] -- Install configuration: "Debug"
[ +13 ms] -- Up-to-date: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/icudtl.dat
[ +89 ms] -- Up-to-date: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/flutter_windows.dll
[ +5 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets
[ ] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/AssetManifest.json
[ +1 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/FontManifest.json
[ +1 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/fonts
[ ] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.ttf
[ +1 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/kernel_blob.bin
[ +96 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/NOTICES
[ +3 ms] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/packages
[ ] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons
[ ] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets
[ ] -- Installing: C:/Users/dk/AndroidStudioProjects/moor_shared/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[ +10 ms] FinalizeBuildStatus:
[ ] Deleting file "x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild".
[ ] Touching "x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
[ ] Done Building Project "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" (default targets).
[ +11 ms] Build succeeded.
[ +2 ms] "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" (default target) (1) ->
[ ] "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\ALL_BUILD.vcxproj" (default target) (3) ->
[ ] "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_wrapper_app.vcxproj" (default target) (4) ->
[ ] "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj" (default target) (5) ->
[ ] (CustomBuild target) ->
[ ] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\b6e17abb4ba8435e3d69cbf42ed0eee5\flutter_windows.dll.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\flutter_phony
" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj]
[ +1 ms] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\9607ab9e72109af78722f24fddd85df2\flutter_assemble.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\flutter\cmakefiles\flutter_assemble" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\flutter\flutter_assemble.vcxproj]
[ +1 ms] "C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj" (default target) (1) ->
[ ] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(231,5): warning MSB8065: Custom build for item
"C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\CMakeFiles\1f4d6e2193f10ab998fca2a8a64594dc\INSTALL_force.rule" succeeded, but specified output
"c:\users\dk\androidstudioprojects\moor_shared\build\windows\cmakefiles\install_force" has not been created. This may cause incremental build to work incorrectly.
[C:\Users\dk\AndroidStudioProjects\moor_shared\build\windows\INSTALL.vcxproj]
[ +1 ms] 3 Warning(s)
[ ] 0 Error(s)
[ ] Time Elapsed 00:00:08.50
[ +14 ms] Building Windows application... (completed in 9.8s)
[ +429 ms] Observatory URL on device: http://127.0.0.1:49838/Ym_DzMQ_Xeo=/
[ +6 ms] Caching compiled dill
[ +30 ms] Connecting to service protocol: http://127.0.0.1:49838/Ym_DzMQ_Xeo=/
[ +128 ms] Successfully connected to service protocol: http://127.0.0.1:49838/Ym_DzMQ_Xeo=/
[ +1 ms] Waiting for Windows to report its views...
[ +5 ms] Waiting for Windows to report its views... (completed in 4ms)
[ +9 ms] DevFS: Creating new filesystem on the device (null)
[ +17 ms] DevFS: Created new filesystem on the device (file:///C:/Users/dk/AppData/Local/Temp/moor_shareda2fb87c0/moor_shared/)
[ +2 ms] Updating assets
[ +191 ms] Syncing files to device Windows...
[ +1 ms] Scanning asset files
[ +2 ms] <- reset
[ ] Compiling dart to kernel with 0 updated files
[ +1 ms] <- recompile package:moor_shared/main.dart 5c5a0e11-0b02-4fd4-ad2e-3188c7243eb2
[ ] <- 5c5a0e11-0b02-4fd4-ad2e-3188c7243eb2
[ +73 ms] Updating files
[ +49 ms] [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library (126)
[ ] #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:55)
[ ] #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:20:12)
[ ] #2 _defaultOpen (package:moor_ffi/src/load_library.dart:53:27)
[ ] #3 OpenDynamicLibrary.openSqlite (package:moor_ffi/src/load_library.dart:99:12)
[ ] #4 new _SQLiteBindings (package:moor_ffi/src/bindings/bindings.dart:121:19)
[ ] #5 bindings (package:moor_ffi/src/bindings/bindings.dart:262:53)
[ ] #6 new Database.open (package:moor_ffi/src/impl/database.dart:52:9)
[ ] #7 new Database.memory (package:moor_ffi/src/impl/database.dart:40:41)
[ ] #8 _VmDelegate.open (package:moor_ffi/src/vm_database.dart:41:22)
[ ] #9 DelegatedDatabase.ensureOpen. (package:moor/src/runtime/executor/helpers/engines.dart:244:22)
[ ]
[ ] #10 DelegatedDatabase.ensureOpen. (package:moor/src/runtime/executor/helpers/engines.dart)
[ ] #11 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:32:26)
[ ] #12 DelegatedDatabase.ensureOpen (package:moor/src/runtime/executor/helpers/engines.dart:238:25)
[ ] #13 QueryEngine.doWhenOpened (package:moor/src/runtime/api/query_engine.dart:98:21)
[ ] #14 CustomSelectStatement._executeWithMappedArgs (package:moor/src/runtime/query_builder/statements/select/custom_select.dart:53:19)
[ ] #15 CustomSelectStatement._constructFetcher. (package:moor/src/runtime/query_builder/statements/select/custom_select.dart:30:24)
[ ] #16 QueryStream.fetchAndEmitData (package:moor/src/runtime/executor/stream_queries.dart:248:38)
[ ] #17 QueryStream._onListen (package:moor/src/runtime/executor/stream_queries.dart:219:7)
[ ] #18 _runGuarded (dart:async/stream_controller.dart:847:24)
[ ] #19 _BroadcastStreamController._subscribe (dart:async/broadcast_stream_controller.dart:213:7)
[ ] #20 _ControllerStream._createSubscription (dart:async/stream_controller.dart:860:19)
[ ] #21 _StreamImpl.listen (dart:async/stream_impl.dart:493:9)
[ ] #22 _StartWithValueStream.listen (package:moor/src/utils/start_with_value_transformer.dart:40:33)
[ ] #23 new _ForwardingStreamSubscription (dart:async/stream_pipe.dart:118:10)
[ ] #24 _ForwardingStream._createSubscription (dart:async/stream_pipe.dart:88:16)
[ ] #25 _ForwardingStream.listen (dart:async/stream_pipe.dart:83:12)
[ ] #26 CombineLatestStream._buildController.. (package:rxdart/src/streams/combine_latest.dart:311:25)
[ ] #27 MappedListIterable.elementAt (dart:_internal/iterable.dart:417:31)
[ ] #28 ListIterator.moveNext (dart:_internal/iterable.dart:343:26)
[ ] #29 new List.from (dart:core-patch/array_patch.dart:38:29)
[ ] #30 new List.of (dart:core-patch/array_patch.dart:68:17)
[ ] #31 ListIterable.toList (dart:_internal/iterable.dart:211:44)
[ ] #32 CombineLatestStream._buildController. (package:rxdart/src/streams/combine_latest.dart:331:12)
[ ] #33 _runGuarded (dart:async/stream_controller.dart:847:24)
[ ] #34 _StreamController._subscribe. (dart:async/stream_controller.dart:726:7)
[ ] #35 _BufferingStreamSubscription._guardCallback (dart:async/stream_impl.dart:435:13)
[ +2 ms] #36 _StreamController._subscribe (dart:async/stream_controller.dart:725:18)
[ +2 ms] #37 _ControllerStream._createSubscription (dart:async/stream_controller.dart:860:19)
[ ] #38 _StreamImpl.listen (dart:async/stream_impl.dart:493:9)
[ ] #39 StreamView.listen (dart:async/stream.dart:1871:20)
[ ] #40 Observable.listen (package:rxdart/src/observables/observable.dart:1982:20)
[ ] #41 new TodoAppBloc (package:moor_shared/data/blocs/bloc.dart:51:7)
[ ] #42 _MyAppState.initState (package:moor_shared/main.dart:23:12)
[ ] #43 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
[ ] #44 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
[ ] #45 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
[ ] #46 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
[ ] #47 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1174:16)
[ ] #48 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1145:5)
[ ] #49 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1087:17)
[ ] #50 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:19)
[ ] #51 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1086:13)
[ ] #52 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:927:7)
[ ] #53 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:908:7)
[ ] #54 _rootRun (dart:async/zone.dart:1182:47)
[ ] #55 _CustomZone.run (dart:async/zone.dart:1093:19)
[ ] #56 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
[ ] #57 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
[ ] #58 _rootRun (dart:async/zone.dart:1190:13)
[ ] #59 _CustomZone.run (dart:async/zone.dart:1093:19)
[ +2 ms] #60 _CustomZone.bindCallback. (dart:async/zone.dart:1021:23)
[ ] #61 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
[ ] #62 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
[ ] #63 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
[ ] #64 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[ +1 ms] DevFS: Sync finished
[ ] Syncing files to device Windows... (completed in 170ms)
[ +1 ms] Synced 0.9MB.
[ +1 ms] <- accept
[ +2 ms] Connected to _flutterView/0x22c1319ac30.
[ +1 ms] Flutter run key commands.
[ +1 ms] r Hot reload. ���
[ +3 ms] R Hot restart.
[ ] h Repeat this help message.
[ ] d Detach (terminate "flutter run" but leave application running).
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[ ] An Observatory debugger and profiler on Windows is available at: http://127.0.0.1:49838/Ym_DzMQ_Xeo=/

`

Error resolving plugin [id: 'de.undercouch.download', version: '4.0.0']

I all platfroms such as iOS, MacOS, Web, work well with this project, except android, when I try to run this project on Android device(actually emulator), it throw the following exception. Can you help why? Thanks.

-----------Stack trace-----------
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/mac/development/flutter/.pub-cache/hosted/pub.dartlang.org/moor_ffi-0.2.0/android/build.gradle' line: 13

  • What went wrong:
    Error resolving plugin [id: 'de.undercouch.download', version: '4.0.0']

Plugin request for plugin already on the classpath must not include a version

  • 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 1s
Exception: Gradle task assembleDebug failed with exit code 1

moor_generator errors

I forked your code and tried to run flutter packages pub run build_runner build to regenerate database.g.dart. I'm getting this stacktrace and generation just repeats 2/18 actions completed message over and over

[INFO] Running build...
[INFO] Generating SDK summary...
[SEVERE] moor_generator:moor_generator on test/widget_test.dart:

Bad state: Unexpected diagnostics:
/Users/rs186002/bin/flutter/bin/cache/dart-sdk/lib/core/uri.dart:3259:39 - Expected an identifier.
[SEVERE] moor_generator:moor_generator on test/widget_test.dart:

...

[INFO] 16.2s elapsed, 2/18 actions completed.
[WARNING] No actions completed for 15.0s, waiting on:
  - moor_generator:moor_generator on lib/ui/common/index.dart
  - moor_generator:moor_generator on lib/ui/common/categories_drawer.dart
  - moor_generator:moor_generator on lib/ui/common/add_category_dialog.dart
  - moor_generator:moor_generator on lib/ui/common/todo_edit_dialog.dart
  - moor_generator:moor_generator on lib/ui/common/todo_card.dart
  .. and 11 more

[INFO] 17.6s elapsed, 2/18 actions completed.

I'm on macOS Catalina 10.15.6 running

Flutter 1.20.0 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 916c3ac648 (11 days ago) • 2020-08-01 09:01:12 -0700
Engine • revision d6ee1499c2
Tools • Dart 2.9.0 (build 2.9.0-21.10.beta)
Android Studio 4.1 beta 5

Build error for iOS

I got build error when trying to run on iOS, here is the log

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/lib/src/path_provider_windows_real.dart:126:25: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
              knownFolderID.addressOf, KF_FLAG_DEFAULT, NULL, pathPtrPtr);
                            ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1067:7: Error: The getter 'addressOf' isn't defined for the class 'LOGFONT'.
     - 'LOGFONT' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
          addressOf.cast<Uint8>().elementAt(28).cast<Utf16>();
          ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1112:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
     - 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      LOGFONT get elfLogFont => addressOf.cast<LOGFONT>().ref;
                                ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1114:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
     - 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      String get elfFullName => addressOf
                                ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1120:26: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
     - 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      String get elfStyle => addressOf
                             ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1126:27: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'.
     - 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      String get elfScript => addressOf
                              ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2688:7: Error: The getter 'addressOf' isn't defined for the class 'OSVERSIONINFO'.
     - 'OSVERSIONINFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
          addressOf.cast<Uint8>().elementAt(20).cast<Utf16>().unpackString(128);
          ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2699:11: Error: The getter 'addressOf' isn't defined for the class 'OSVERSIONINFO'.
     - 'OSVERSIONINFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            ..addressOf.cast<Uint8>().elementAt(20).value = 0;
              ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2744:24: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_DEVICE_INFO'.
     - 'BLUETOOTH_DEVICE_INFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      String get szName => addressOf
                           ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2837:7: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
     - 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
          addressOf.cast<Uint8>().elementAt(BTH_MAX_PIN_SIZE).value;
          ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2840:5: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
     - 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        addressOf.cast<Uint8>().elementAt(BTH_MAX_PIN_SIZE).value =
        ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2845:28: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
     - 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
          String.fromCharCodes(addressOf.cast<Uint8>().asTypedList(pinLength));
                               ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2853:7: Error: The getter 'addressOf' isn't defined for the class 'BLUETOOTH_PIN_INFO'.
     - 'BLUETOOTH_PIN_INFO' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
          addressOf.cast<Uint8>().elementAt(idx).value = pinData[idx];
          ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart:38:31: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      final iid = GUID.allocate().addressOf;
                                  ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart:56:33: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      final clsid = GUID.allocate().addressOf;
                                    ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/winrt/winrt_helpers.dart:86:40: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      final riidCalendar = GUID.allocate().addressOf;
                                           ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:197:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:200:49: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(CLSID_DesktopWallpaper).addressOf,
                                                    ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IDesktopWallpaper.dart:203:48: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(IID_IDesktopWallpaper).addressOf,
                                                   ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileOpenDialog.dart:58:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileOpenDialog.dart:61:47: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(CLSID_FileOpenDialog).addressOf,
                                                  ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileOpenDialog.dart:64:46: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(IID_IFileOpenDialog).addressOf,
                                                 ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileSaveDialog.dart:99:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileSaveDialog.dart:102:47: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(CLSID_FileSaveDialog).addressOf,
                                                  ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IFileSaveDialog.dart:105:46: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(IID_IFileSaveDialog).addressOf,
                                                 ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IKnownFolderManager.dart:164:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IKnownFolderManager.dart:167:51: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(CLSID_KnownFolderManager).addressOf,
                                                      ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IKnownFolderManager.dart:170:50: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(IID_IKnownFolderManager).addressOf,
                                                     ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/INetworkListManager.dart:128:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/INetworkListManager.dart:131:51: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(CLSID_NetworkListManager).addressOf,
                                                      ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/INetworkListManager.dart:134:50: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            GUID.fromString(IID_INetworkListManager).addressOf,
                                                     ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IWbemLocator.dart:82:38: Error: The getter 'addressOf' isn't defined for the class 'COMObject'.
     - 'COMObject' is from 'package:win32/src/com/combase.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/com/combase.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final ptr = COMObject.allocate().addressOf;
                                         ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IWbemLocator.dart:84:68: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
        final hr = CoCreateInstance(GUID.fromString(CLSID_WbemLocator).addressOf,
                                                                       ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/generated/IWbemLocator.dart:85:64: Error: The getter 'addressOf' isn't defined for the class 'GUID'.
     - 'GUID' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
            nullptr, CLSCTX_ALL, GUID.fromString(IID_IWbemLocator).addressOf, ptr);
                                                                   ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:63:33: Error: The getter 'addressOf' isn't defined for the class 'Utf8'.
     - 'Utf8' is from 'package:ffi/src/utf8.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'.
      String toString() => fromUtf8(addressOf);
                                    ^^^^^^^^^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/ffi/sqlite3.ffi.dart:6:7: Error: Struct 'char' is empty. Empty structs are undefined behavior.
    class char extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/ffi/sqlite3.ffi.dart:8:7: Error: Struct 'sqlite3' is empty. Empty structs are undefined behavior.
    class sqlite3 extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/ffi/sqlite3.ffi.dart:10:7: Error: Struct 'sqlite3_stmt' is empty. Empty structs are undefined behavior.
    class sqlite3_stmt extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/ffi/sqlite3.ffi.dart:12:7: Error: Struct 'sqlite3_value' is empty. Empty structs are undefined behavior.
    class sqlite3_value extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/ffi/sqlite3.ffi.dart:14:7: Error: Struct 'sqlite3_context' is empty. Empty structs are undefined behavior.
    class sqlite3_context extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1111:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty structs are undefined behavior.
    class ENUMLOGFONTEX extends Struct {
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2835:7: Error: Struct 'BLUETOOTH_PIN_INFO' is empty. Empty structs are undefined behavior.
    class BLUETOOTH_PIN_INFO extends Struct {
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2960:7: Error: Struct 'EXCEPINFO' is empty. Empty structs are undefined behavior.
    class EXCEPINFO extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2966:7: Error: Struct 'PROPERTYKEY' is empty. Empty structs are undefined behavior.
    class PROPERTYKEY extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2973:7: Error: Struct 'PROPVARIANT' is empty. Empty structs are undefined behavior.
    class PROPVARIANT extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2978:7: Error: Struct 'SAFEARRAY' is empty. Empty structs are undefined behavior.
    class SAFEARRAY extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2985:7: Error: Struct 'CLSID' is empty. Empty structs are undefined behavior.
    class CLSID extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2992:7: Error: Struct 'STATSTG' is empty. Empty structs are undefined behavior.
    class STATSTG extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:2999:7: Error: Struct 'NLM_SIMULATED_PROFILE_INFO' is empty. Empty structs are undefined behavior.
    class NLM_SIMULATED_PROFILE_INFO extends Struct {}
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior.
    class Utf8 extends Struct {
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior.
    class Utf16 extends Struct {
          ^
    ../../flutter/.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'.
      final int totalSize = count * sizeOf<T>();
                                    ^

    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the precompiled application for the device.

Does anyone has idea about this error? Thank you

Error: The non-abstract class 'TodoEntry' is missing implementations for these members

It worked good before I upgrade moor and moor_ffi to the latest version.
I think this is caused by the different APIs among these version. Can you update this project to support the latest version of moor and moor_ffi, since I'd like to upgrade these packages to up-to-date ones. Thanks.

image

Stack trace as follow:

Launching lib/main.dart on iPad (7th generation) in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 15.0s
Failed to build iOS app
Could not build the application for the simulator.
Error launching application on iPad (7th generation).
Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

lib/data/database/database.g.dart:10:7: Error: The non-abstract class 'TodoEntry' is missing implementations for these members:

  • Insertable.toColumns
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class TodoEntry extends DataClass implements Insertable {
^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart:22:27: Context: 'Insertable.toColumns' is defined here.
Map<String, Expression> toColumns(bool nullToAbsent);
^^^^^^^^^
lib/data/database/database.g.dart:104:7: Error: The non-abstract class 'TodosCompanion' is missing implementations for these members:

  • Insertable.toColumns
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class TodosCompanion extends UpdateCompanion {
^^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart:22:27: Context: 'Insertable.toColumns' is defined here.
Map<String, Expression> toColumns(bool nullToAbsent);
^^^^^^^^^
lib/data/database/database.g.dart:252:7: Error: The non-abstract class 'Category' is missing implementations for these members:

  • Insertable.toColumns
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class Category extends DataClass implements Insertable {
^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart:22:27: Context: 'Insertable.toColumns' is defined here.
Map<String, Expression> toColumns(bool nullToAbsent);
^^^^^^^^^
lib/data/database/database.g.dart:316:7: Error: The non-abstract class 'CategoriesCompanion' is missing implementations for these members:

  • Insertable.toColumns
    Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class CategoriesCompanion extends UpdateCompanion {
^^^^^^^^^^^^^^^^^^^
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart:22:27: Context: 'Insertable.toColumns' is defined here.
Map<String, Expression> toColumns(bool nullToAbsent);
^^^^^^^^^
lib/data/database/database.g.dart:191:56: Error: The parameter 'd' of the method '$TodosTable.validateIntegrity' has type 'TodosCompanion', which does not match the corresponding type, 'Insertable', in the overridden method, 'TableInfo.validateIntegrity'.

  • 'TodosCompanion' is from 'package:flutterapp2/data/database/database.dart' ('lib/data/database/database.dart').
  • 'Insertable' is from 'package:moor/src/runtime/data_class.dart' ('../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart').
  • 'TodoEntry' is from 'package:flutterapp2/data/database/database.dart' ('lib/data/database/database.dart').
    Change to a supertype of 'Insertable', or, for a covariant parameter, a subtype.
    VerificationContext validateIntegrity(TodosCompanion d,
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/schema/table_info.dart:49:23: Context: This is the overridden method ('validateIntegrity').
    VerificationContext validateIntegrity(Insertable instance,
    ^
    lib/data/database/database.g.dart:372:61: Error: The parameter 'd' of the method '$CategoriesTable.validateIntegrity' has type 'CategoriesCompanion', which does not match the corresponding type, 'Insertable', in the overridden method, 'TableInfo.validateIntegrity'.
  • 'CategoriesCompanion' is from 'package:flutterapp2/data/database/database.dart' ('lib/data/database/database.dart').
  • 'Insertable' is from 'package:moor/src/runtime/data_class.dart' ('../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/data_class.dart').
  • 'Category' is from 'package:flutterapp2/data/database/database.dart' ('lib/data/database/database.dart').
    Change to a supertype of 'Insertable', or, for a covariant parameter, a subtype.
    VerificationContext validateIntegrity(CategoriesCompanion d,
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/schema/table_info.dart:49:23: Context: This is the overridden method ('validateIntegrity').
    VerificationContext validateIntegrity(Insertable instance,
    ^
    lib/data/database/database.g.dart:232:19: Error: Expected 1 type arguments.
    map['id'] = Variable<int, IntType>(d.id.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^
    lib/data/database/database.g.dart:235:24: Error: Expected 1 type arguments.
    map['content'] = Variable<String, StringType>(d.content.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^
    lib/data/database/database.g.dart:238:28: Error: Expected 1 type arguments.
    map['target_date'] = Variable<DateTime, DateTimeType>(d.targetDate.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^
    lib/data/database/database.g.dart:241:25: Error: Expected 1 type arguments.
    map['category'] = Variable<int, IntType>(d.category.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^
    lib/data/database/database.g.dart:401:19: Error: Expected 1 type arguments.
    map['id'] = Variable<int, IntType>(d.id.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^
    lib/data/database/database.g.dart:404:21: Error: Expected 1 type arguments.
    map['desc'] = Variable<String, StringType>(d.description.value);
    ^
    ../../development/flutter/.pub-cache/hosted/pub.dartlang.org/moor-3.1.0/lib/src/runtime/query_builder/expressions/variables.dart:22:9: Context: Found this candidate, but the arguments don't match.
    const Variable(this.value);
    ^^^^^^^^

Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description

pub get failed

Because flutter_bloc >=6.0.0-dev.1 depends on provider >=4.1.0-dev+1 which requires Flutter SDK version >=1.15.17-pre.5, flutter_bloc >=6.0.0-dev.1 is forbidden.
So, because moor_shared depends on flutter_bloc ^6.0.5, version solving failed.

pub get failed (1; So, because moor_shared depends on flutter_bloc ^6.0.5, version solving failed.)
Process finished with exit code 1

Crash when trying moor_shared demo on my android device

When using on my physical Android device, it crashed as follows:
image
The device is using Android 7.1.2:
image

But, it work fine on the Android emulator running on the MacOS:
image

My question is whether moor requires the minimum version of Android to make it works? If yes, I hope to make it support as extent as possible when it comes to Android version, because our product will meet users with different background.

Will Moor save the stack trace in a file on the device? If yes, please tell me where, so that I can send you it.

Am I missing anything before I release the code to a physical device? Thanks.

Assert problem on widget_test.dart

I'm getting an assert test failure on run widget_test.dart:

The following TestFailure object was thrown running a test:
Expected: exactly one matching node in the widget tree
Actual: _TextFinder:<zero widgets with text "0" (ignoring offstage widgets)>
Which: means none were found but one was expected

The same question was made on stackoverflow too:

https://stackoverflow.com/questions/59450096/testing-dart-code-in-android-studio-no-widgets-involved-only-data-structures-a

Exception when creating category

Added a category and got this exception

[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: type 'Future<void>' is not a subtype of type 'Future<int>' in type cast
#0      Database.createCategory (package:moor_shared/src/database/database.dart:170:7)
#1      TodoAppBloc.addCategory (package:moor_shared/src/blocs/todo.dart:66:25)
#2      _AddCategoryDialogState._addEntry (package:moor_shared/ui/common/add_category_dialog.dart:57:45)
#3      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:989:21)
#4      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:198:24)
#5      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:608:11)
#6      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
#7      BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:230:7)
#8      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:563:9)
#9      PointerRouter._dispatch (package:flutter/sr<…>

database.dart:

**Future<int>** createCategory(String description) {
    return insertRow(
      cs,
      categories,
      CategoriesCompanion(description: Value(description)),
    ) as Future<int>;
  }

db_utils.dart:

databaseUtils.
 **Future<void>** insertRow(
    ChangeStack cs,
    Table table,
    Insertable val,
  ) async {
    final _change = Change(
      val,
      () async => await this.into(table as TableInfo).insert(val),
      (dynamic val) async => await this.delete(table as TableInfo).delete(val),
    );
    cs.add(_change);
  }

Looks like this happens more than once from a cursory glance at the code. I am not at all familiar with this code, this is the second thing I tried when I compiled and ran, and I'm a newbie with Flutter/Dart, so I'm not up to fixing it and doing a pull request. If I decide to use this in a project I'll try to figure it out.

It looks like this code is sparsely maintained so I wasn't going to submit this, but you did merge the pull request recently to handle null support.

SharedDatabase instance for web (moor v4)

How to return SharedDatabase instance for web from constructDb()

I followed moor_shared example and everything was working perfect until I updated moor to v4.

in web.dart file I was constructing SharedDatabase like this before:

web.dart

SharedDatabase constructDb({bool logStatements = false}) {
  return SharedDatabase(WebDatabase.withStorage(
      MoorWebStorage.indexedDbIfSupported('my_database'),
      logStatements: logStatements));
}

but after updating moor to v4 MoorWebStorage is now Future

WebDatabase.withStorage(await MoorWebStorage.indexedDbIfSupported(name))

how can I return the SharedDatabase without Future so that I can use constructDb() because for mobile constructsDb() returns simply SharedDatabase like this:

mobile.dart

SharedDatabase constructDb({bool logStatements = false}) {
  if (Platform.isIOS || Platform.isAndroid) {
    final executor = LazyDatabase(() async {
      final dataDir = await paths.getApplicationDocumentsDirectory();
      final dbFile =
          File(p.join(dataDir.path, 'my_database.sqlite'));
      return VmDatabase(dbFile, logStatements: logStatements);
    });
    return SharedDatabase(executor);
  }
  if (Platform.isMacOS || Platform.isLinux) {
    final file = File('my_database.sqlite');
    return SharedDatabase(
        VmDatabase(file, logStatements: logStatements));
  }
  if (Platform.isWindows) {
    final file = File('my_database.sqlite');
    return SharedDatabase(
        VmDatabase(file, logStatements: logStatements));
  }

  return SharedDatabase(
      VmDatabase.memory(logStatements: logStatements));
} 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.