Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Build works fine in debug mode, but throws "System.DllNotFoundException: sqlcipher" on release

$
0
0

I almost finished my current project and want to send the project to some testers. When i build the app (Android) in debug mode the apps works fine, as expected. But when i change the build mode to "Release" the app crashes on launch and throws me this error:

[mono] Unhandled Exception:
[mono] System.TypeInitializationException: An exception was thrown by the type initializer for MWC.DL.MwcDatabase ---> System.DllNotFoundException: sqlcipher
[mono]   at (wrapper managed-to-native) SQLite.SQLite3:Open (byte[],intptr&,int,intptr)
[mono]   at SQLite.SQLiteConnection..ctor (System.String databasePath, SQLiteOpenFlags openFlags, Boolean storeDateTimeAsTicks) [0x00000] in <filename unknown>:0 
[mono]   at SQLite.SQLiteConnection..ctor (System.String databasePath, System.Byte[] key, Boolean storeDateTimeAsTicks) [0x00000] in <filename unknown>:0 
[mono]   at SQLite.SQLiteConnection..ctor (System.String databasePath, System.String key, Boolean storeDateTimeAsTicks) [0x00000] in <filename unknown>:0 
[mono]   at MWC.DL.MwcDatabase..ctor (System.String path, System.String password) [0x00000] in <filename unknown>:0 
[mono]   at MWC.DL.MwcDatabase..cctor () [0x00000] in <filename unknown>:0 
[mono]   --- End of inner exception stack trace ---
[mono]   at MWC.BL.Managers.UpdateManager.get_HasDataAlready () [0x00000] in <filename unknown>:0

In the "Android build" setting (under release) i have tried the following without any success:

  • Checked the button "Embed assemblies in native code"
  • Linker behaviour: tried all three options

When i check the button "Use shared Mono runtime" (in debug) the apps works fine, but this is not a option for a release build.

If anyone can help me, i would be very happy! Thanks in advance.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>