Multiple plugins with the same name error

Hello guys,

I’ve two DLLs where one is for x64 and one is for x86. They’ve same name but on different path. And this should be normal. But however, unity throws error:

x86 DLL (Assets/Plugins/ConcaveMeshCollider/x86/ConcaveMeshCollider.dll):

x64 DLL (Assets/Plugins/ConcaveMeshCollider/x86_64/ConcaveMeshCollider.dll):

What is wrong?

Thank you,

  • Chinafreak

[Edit]

The DLLs are native C++!

push has nobody an idea why Unity throws error? :frowning:

push
I think this is a bug from Unity, or?

push

11 Likes

push

no idea? :frowning:

Both of the DLLs are set to be used in the Editor. Choose one.

1 Like

Thank you so much for response!
Yeah sure. But I want to have both so I can put those in Asset Store. And I’ve actually seen other plugins with same name (but for different cpu, 32bt and 64bit) without throwing errors.

1 Like

Any idea how to fix this? :frowning: I’m getting the same error for a different dll.

1 Like

push still looking for solution… :confused:

1 Like

push

I know this isn’t that helpful, but according to the official Unity Developer Guide from Oculus it’s a known issue and can be ignored. page 84:
"Unity 5.6 and later: If you have updated your OVRPlugin version from Utilities, you may see a spurious error
message when the Editor first launches saying “Multiple plugins with the same name ‘ovrplugin’”. Please
disregard."

http://static.oculus.com/documentation/pdfs/game-engines/latest/unity.pdf

1 Like

@julienkay huch, but I can’t ignore, because Unity won’t let me run the plugins because of dll error. :frowning:

But thank you so much for your reply!

1 Like

Yeah sorry, I just noticed my comment wasn’t even relevant for your question. I somehow thought this was about using the OculusUtilities because this is a common problem there too, my bad.

Have your tried ‘Reimport All’ or deleting the library folder as suggested in this thread?

Giving this a push, as I am getting the same error, but with the Facebook SDK.
I think the underlying cause is the same; so…

I’m getting this error also. It’s preventing me from building.

My problem is like the error, I can not building the project.


Error building Player: Multiple plugins with the same name ‘liboni’ (found at ‘Assets/Obi/Plugins/libOni.bundle’ and ‘Assets/Obi/Plugins/libOni.bundle’). That means one or more plugins are set to be compatible with Editor. Only one plugin at the time can be used by Editor.

I know this is an old post but, seeing as I just figured it out I figured I would answer it on here.

If you have multiple plugins of the same name, the editor doesn’t know which one to use. So, you need to go into your plugin import settings and deselect the editor for one of them. If you notice in the OP’s photos you will see that the Editor is selected for both plugins, in order to fix this just unselect it for one of them. It is more of the Editor doesn’t know which plugin to choose when it runs. So, you have to tell it when there are multiple.

8 Likes
  • Excuse me, have you solved it?

I solved the problem like this.

  1. Back up the whole project (for safety)

  2. open the scene that is not related to plugin of this problem.

  3. Delete the plugin asset folder in the project

  4. Close the Unity
    (There will be the process related to deleting the plugin.)

  5. Open this Project again.

  6. Reimport the plugin asset newly.

  7. Build is possible.

Hope this is helpful ~ :slight_smile:

(** if this method is not successful, then between 0 and 1, you can delete Library folder of the Project and reproduce the Library folder… I did this process but I don’t think this is necessary)

1 Like

Thanks! this solved it for me, now the code runs just fine.