2

While building my application for release in Xamarin Studio (Monodroid) i'm getting a "System.DllNotFoundException: sqlcipher" exception. This means the app can not find the sqlcipher DLL.

This issue only appears in release mode. Under the setting "Android build", i have tried several things like:

  • Embed assemblies in native code
  • Link all assemblies

But the application is still crashing on release mode. Anything i could have missed?

2
  • Can you please provide the full stack trace? Do you get this exception when running the application on the device, or when building, or when packaging? Commented Nov 13, 2013 at 13:05
  • I'm getting this exception when i run the application. The build and package process goes well. When i extract the APK the sqlcipher dll is also there, but the app can not find it. The exception: snipt.org/Bahae1 Commented Nov 13, 2013 at 14:18

1 Answer 1

1

We got a answer back from Xamarin support:

If so, the problem is that the SqlCipher component does not contain armeabi libraries, only armeabi-v7a and x86 [0]. Consequently, it can't be used on any armeabi (ARMv5) platforms, which includes all ARM-based Android emulators before API-14 (which is the first emulator that uses armeabi-v7a).

If you need to test on API-10, try using the x86 emulator or an armeabi-v7a hardware device.

We tried this solution before we contacted Xamarin support, but it didn't work. The solution was to change the project to armeabi-v7a and restart the IDE. Weird, but true.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.