Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Android build DllNotFoundException enet

Discussion in 'Editor & General Support' started by XuPoH, Nov 11, 2020.

  1. XuPoH

    XuPoH

    Joined:
    Oct 4, 2014
    Posts:
    13
    I imported an enet library as so:

    1) enet.dll
    2) libenet.so
    3) libenet.bundle

    When I run a Windows build, the enet.dll is being properly transfered to the out folder.
    Although, when I run an Android build, the error "DllNotFoundException: no dll found with name enet" occurs

    I checked the libs subfolder of the .apk file and it only contains unity libs and burst libs.

    My folders structure is:

    upload_2020-11-11_16-31-24.png
    The original code I use to import dll functions: upload_2020-11-11_16-32-21.png

    How do I run my android build properly then??

    Unity version: 2020.1.12f1
     
    Last edited: Nov 11, 2020