简体   繁体   中英

Xamarin Forms Android .APK vs .AAB (Bundle)

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.

I am using this library and works with apk or aab

https://www.nuget.org/packages/sqlite-net-pcl/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM