Forum Cross Platform with Xamarin

Local database in Sql lite in Android cross platform app

I have added local database to my cross platform app.
Local database has size of 40 MB.
Now when I create apk in Debug mode my apk has 70 MB and after installing it on my phone everything works fine,
but when I build my application in Release mode then my apk is 20 MB ( and my local database is not added to apk)

Do you know what is the problem?
I have added .db file to Assets folder with build action -> AndroidAsset.
I have added all permissions for apk.

All the code is correct, the only difference is Debug and Release mode.



  • N_BauaN_Baua INMember ✭✭✭✭✭

    Hi @Danio,

    Make sure you've the Linker options turned off OR you've excluded the SQLLite dependencies in there.
    Other wise your SQLLite will tend to fail.

    I am not sure, how currently your 'release' mode build is processing, though this can be one of the possibility.
    Hope it helps.

    -- N Baua

Sign In or Register to comment.