Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't save file on Android and app crashed

See original GitHub issue

I have below code:

try {
      var image = await ImagePicker.pickImage(source:;
      var path = GallerySaver.saveImage(image.path);
      developer.log('path $path');
    } catch (err) {
      developer.log('failed to take photo', error: err);

and app crashed on GallerySaver.saveImage(image.path);. The error I got is:

E/AndroidRuntime(17754): FATAL EXCEPTION: main
E/AndroidRuntime(17754): Process: com.example.rent_exp_app, PID: 17754
E/AndroidRuntime(17754): android.database.sqlite.SQLiteException: table thumbnails has no column named relative_path (code 1 SQLITE_ERROR): , while compiling: INSERT INTO thumbnails (height,image_id,kind,_data,width,relative_path) VALUES (?,?,?,?,?,?)
E/AndroidRuntime(17754): 	at android.database.DatabaseUtils.readExceptionFromParcel(
E/AndroidRuntime(17754): 	at android.database.DatabaseUtils.readExceptionFromParcel(
E/AndroidRuntime(17754): 	at android.content.ContentProviderProxy.insert(
E/AndroidRuntime(17754): 	at android.content.ContentResolver.insert(
E/AndroidRuntime(17754): 	at android.content.ContentResolver.insert(

It seems that it failed to save thumbnails to SQLite database.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

jelenaleciccommented, Jan 19, 2021

please try the newest version of the gallery_saver. thanks 😃

Nillouisecommented, Sep 14, 2020

Same issue, but I have successful in other environment, I don’t known what difference

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to restore game data & fix other errors in Google Play ...
Open your device's Settings app. · Tap Apps & notifications and then See all apps. · Scroll down and tap Google Play Games....
Read more >
Why do my apps keep crashing on Android, How to fix it
Go to Settings -> Apps and select the app and tap on 'Clear data' or 'Clear storage '. This will delete all the...
Read more >
java - android - can't save text file - Stack Overflow
However everytime I try and run the code the app crashes with the error 'Unfortunately, APP_NAME has stopped." Can anyone tell me what...
Read more >
Why Do My Apps Keep Crashing on Android? - Avast
Open Settings and select Apps. Apps settings on an Android device. · Tap the app you want to reset. The list of Apps...
Read more >
Apps crash when I try to download, save or delete something
Force-restarting my phone. Clearing the cache of most of my app's. Disabling Chrome. Clearing gallery cache. Removing big apps to empty storage.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found