Search Unity

Build crashes on Android "Unable to find Crypt32"

Discussion in 'Android' started by bartofzo, Oct 15, 2019.

  1. bartofzo

    bartofzo

    Joined:
    Mar 16, 2017
    Posts:
    151
    Hi,

    When I try to run my project on my Android device, it crashes with the following error message:

    Code (csharp):
    1. 10-15 10:24:20.714 15713 15844 E Unity   : Unable to find Crypt32
    2. 10-15 10:24:20.716 15713 15844 W Unity   : Plugins: Couldn't open Crypt32, error: dlopen failed: library "Crypt32" not found
    3. 10-15 10:24:20.716 15713 15844 W Unity   :
    4. 10-15 10:24:20.716 15713 15844 W Unity   : (Filename: ./Runtime/Misc/Plugins.cpp Line: 282)
    5. 10-15 10:24:20.716 15713 15844 W Unity   :
    6. 10-15 10:24:20.743 15713 15844 W Unity   : Plugins: Couldn't open Crypt32, error: dlopen failed: library "Crypt32" not found
    7. 10-15 10:24:20.743 15713 15844 W Unity   :
    8. 10-15 10:24:20.743 15713 15844 W Unity   : (Filename: ./Runtime/Misc/Plugins.cpp Line: 282)
    9. 10-15 10:24:20.743 15713 15844 W Unity   :
    Works on iOS.
    I've recenty started using the AWS.NET sdk in my project and I suspect it has something to do with that.
    Any help on this matter?

    Also, I had this error too before:

    Code (csharp):
    1. Unable to find libc
    But I resolved that (I think) with including msc.rsp file in the Assets folder with the follow contents:
    Code (csharp):
    1. -r:System.Net.Http.dll
    Tried building with both IL2CPP and Mono as backend.Tried both .NET 4.5 and .NET Standard 2.0 but the error keeps coming up.

    Any help on the matter would be much appreciated.
     
  2. iShorty11

    iShorty11

    Joined:
    Mar 28, 2018
    Posts:
    5
    Hello, I'm having this same issue, were you able to find a solution? Thanks.
     
  3. bartofzo

    bartofzo

    Joined:
    Mar 16, 2017
    Posts:
    151
    It turned out the crash had nothing to do with that message in my case. Don't remember what did cause the crash but I believe the message is harmless.
     
  4. iShorty11

    iShorty11

    Joined:
    Mar 28, 2018
    Posts:
    5
    Got it, thanks for the reply!