Can't save file on Android and app crashed
See original GitHub issueI have below code:
try {
var image = await ImagePicker.pickImage(source: ImageSource.camera);
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(DatabaseUtils.java:185)
E/AndroidRuntime(17754): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:141)
E/AndroidRuntime(17754): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:549)
E/AndroidRuntime(17754): at android.content.ContentResolver.insert(ContentResolver.java:2083)
E/AndroidRuntime(17754): at android.content.ContentResolver.insert(ContentResolver.java:2045)
It seems that it failed to save thumbnails to SQLite database.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
please try the newest version of the gallery_saver. thanks 😃
Same issue, but I have successful in other environment, I don’t known what difference