Ola
When you run your app and developing it during debug and release mode. You will find out that you encounter this error.
NB: If during development you make changes to your schema on your files inside "Files" tab.
Now if your code has this kinda of statement.
This means that the database should only be copied if it does not exist. If it exists and you made new changes, you have a bomb!
Solution: Completely de-install your app from your device, this will remove the database also. Installing over and over and coding will not update your db, unless of course you directly run File.Copy each time you debug your app.
#FromARustyB4AHead.
When you run your app and developing it during debug and release mode. You will find out that you encounter this error.
NB: If during development you make changes to your schema on your files inside "Files" tab.
Now if your code has this kinda of statement.
B4X:
'copy the default DB to working folder
If File.Exists(xui.DefaultFolder, DbaseLocal) = False Then
File.Copy(File.DirAssets, DbaseLocal, xui.DefaultFolder, DbaseLocal)
End If
This means that the database should only be copied if it does not exist. If it exists and you made new changes, you have a bomb!
Solution: Completely de-install your app from your device, this will remove the database also. Installing over and over and coding will not update your db, unless of course you directly run File.Copy each time you debug your app.
#FromARustyB4AHead.