realm / realm-dart

Realm is a mobile database: a replacement for SQLite & ORMs.
Apache License 2.0
761 stars 86 forks source link

Can not build for Windows x64 #1799

Open deverlex opened 11 hours ago

deverlex commented 11 hours ago

What happened?

I added lib and run installed. When I run my application for Windows, it throwed an error

Repro steps

../../../AppData/Local/Pub/Cache/hosted/pub.dev/realm_dart-1.9.0/lib/src/native/realm_core.dart(3397,31): error GE5CFE876: The method 'asUint8List' isn't defined for the class 'Uint8List'. [C:\Users...\build\windows\x64\flutter\flutter_assemble.vcxproj] ../../../AppData/Local/Pub/Cache/hosted/pub.dev/realm_dart-1.9.0/lib/src/native/realm_core.dart(3473,59): error GC2F972A8: The argument type 'ByteBuffer' can't be assigned to the parameter type 'Uint8List'. [C:\Users...\build\windows\x64\flutter\flutter_assemble.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Users...\build\windows\x64\CMakeFiles\ceb681803aec163525fa3a8aee31b4b5\flutter_windows.dll.rule;C:\Users...\build\windows\x64\CMakeFiles\64154a9bcb56b208d64a9fd0ea8b577e\flutter_assemble.rule' exited with code 1. [C:\Users...\build\windows\x64\flutter\flutter_assemble.vcxproj] Error: Build process failed.

Version

1.9.0

What Atlas Services are you using?

Local Database only

What type of application is this?

Flutter Application

Client OS and version

Windows 11 x64

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

sync-by-unito[bot] commented 11 hours ago

➤ PM Bot commented:

Jira ticket: RDART-1102