android - Copy .sqlite file to the file system in flutter -


i have folder named assets contains .sqlite file. want copy file system directory. first declare in pubsec.yaml file asset following exception. how should this?

oops; flutter has exited unexpectedly.

dart_newstringfromutf8 expects argument str valid utf-8.

failure: build failed exception. * where: script '/home/power/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 320

  • what went wrong: execution failed task ':app:flutterbuilddebug'.

    process 'command '/home/power/flutter/bin/flutter'' finished non-zero exit value 255

  • try: run --stacktrace option stack trace. run --info or --debug option more log output. finished error: gradle build failed: 1

https://github.com/tekartik/sqflite/blob/master/doc/opening_asset_db.md

i figured getting error due huge size of my.sqlite database.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -