Share via

Xamarin Forms Android .APK vs .AAB (Bundle)

Ogero Ovie 1 Reputation point
2021-12-15T10:41:08.68+00:00

I am having issues with a cross-platform Xamarin Forms app I created using Visual Studio 2019 and 2022. I use SQLite in the app.

Basically, when I set the property Android Package Format to apk and run the app on Android device or Emulator everything works fine.

But when I set the property Android Package Format to bundle (that produces .aab file), I get SQLite exception saying "Cannot Create Table Without Columns ... Does (Models.TableName) Contains Public Properties?"

I have tried different App properties for Android including Link Sdk and Users Assemblies with no luck.

Does anybody know why SQLite works in .apk package but not in bundle(.aab)?

Many thanks

BTW, all the columns in the table contains are set to public.

Developer technologies | .NET | Xamarin
SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-12-16T06:20:50.047+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    when you generate the .aab file, do you publish this aab file to the Google play store? Or you install it directly in your android device or emulator. For the aab file, you need to upload it the google play store then download and install your device.

    And try to set the Linker to none, then make a test.

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.