简体   繁体   中英

Flutter ObjectBox - How to unittest?

I'm building my new Flutter app with objectBox as DB. How can I write an unittest in Android Studio?

When I write a unittest that includes objectBox, at running the test I get following error message:

Failed to load "C:\\Dev\\flutter_rebuild\\test\\db_model_test.dart": Invalid argument(s): Failed to load dynamic library 'lib/objectbox.dll': 126

At first, thanks for the person who down voted my question >:[ If it is such a stupid or easy question, than answer it or say what is wrong on it. But just a down vote is not helping anyone!

And I found this on: https://opensourcelibs.com/lib/objectbox-dart It shows how to download an include the "objectbox.dll" to Windows so that the test can run in Android Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM