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

Urgent : DllNotFoundException, prefectly worked before Unity 4.5

Discussion in 'Editor & General Support' started by Daylightsburning, Sep 9, 2014.

  1. Daylightsburning

    Daylightsburning

    Joined:
    Oct 24, 2013
    Posts:
    15
    Hi everybody,

    I have a .so plugin which worked perfectly in 4.3.1 and now since updating to 4.5.2 everytime i start the game on Android it prints "Unable to lookup library path for 'libname', native render plugin support disabled.", then throw DllNotFoundException exception and crash.

    I tried the latest NDK and reinstalled SDK, still got DllNotFoundException.

    I am 100% sure the .so is there inside the apk, but somehow being disabled becuase 'native render plugin support disabled', the plugin has nothing to do with rendering anyway.

    Can somebody please help, thank you.
     
    Last edited: Sep 9, 2014
  2. Daylightsburning

    Daylightsburning

    Joined:
    Oct 24, 2013
    Posts:
    15
    Last edited: Sep 9, 2014
    Ghopper21 likes this.
  3. mossman3333

    mossman3333

    Joined:
    Apr 3, 2014
    Posts:
    1
    Along similar lines, I found that my android dll only loaded when it had the prefix of "lib".

    So
    [DllImport ("AndroidUnity")]

    resolved correctly when I had my plugin named libAndroidUnity.so, but it failed when I named it AndroidUnity.so

    Hope that helps someone. (This was on unity 5.2.2)