- Home /
Unity Sqlite for Android 8.0
Hello,
Since I passed my phone to Android 8.0, my application (created on unity) using Sqlite doesn't work no more. When I try to open a database.s3db, the connection work but when I try to read a table I have an error :
"System.invalidOperationException : Database is not open at Mono.Data.Sqlite.SqliteCommand.initializeForReader()[0x00000] in :0 at Mono.Data.Sqlite.SqliteCommand.ExecuteReader (CommandBehavior Behavior) [0x00000] in :0 at Mono.Data.Sqlite.SqliteCommand.ExecuteDbDataReader (CommandBehavior Behavior) [0x00000] in :0 ......"
Tell me if you want the full error description but with lot's of try and research, I found other people developping in other platform that unity had this problem. I understand the problem comes from permission but I don't know at all how to solve it in unity. Someone here know it please ?
I Tried :
So much things before I understood the problem comes from Android version :
( like Re-initialization of my phone.... :'( )
In player setting : Modify Write permission : Internal to External (SD card)
In player setting : Modify Minimum API Level
In player setting : Modify Target API Level
schearch info about Android manifest file modification, but I fear to create more problem
Can someone help me please ? Must I have write modification in a script, granted permission, modify Android manifest file, or something else ?
PS: 2 weeks ago, I was under Android 7.0 and all worked fine... My GF is under Android 7.0 and that work fine.