Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Duplicate DLLs blocking build #174

Open
abruce33 opened this issue Jan 24, 2022 · 8 comments
Open

BUG: Duplicate DLLs blocking build #174

abruce33 opened this issue Jan 24, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@abruce33
Copy link

Describe the bug
A clear and concise description of what the bug is.

When going to build a project for Android (APK), I am getting a build error that is failing the build. It appears to be duplicate DLLs in both "/x86/assimp.dll " and "/x86_64/assimp.dll"

This is causing the following (4) critical compile errors.


error 1

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins.
UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string)
UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 2

Plugins colliding with each other.


error 3

Build completed with a result of 'Failed' in 14 seconds (14151 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 4

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

1.) In my existing Unity 2020.3.17f project, I have "Android" set as the build target.
2.) I add the URDF-importer package via the Git URL : https://github.com/Unity-Technologies/URDF-Importer.git?path=/com.unity.robotics.urdf-importer#v0.5.0
3.) After the URDF importer has been added, I click "Build" which starts then stops quickly due to compile errors.
4.) primary error is:

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins.
UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string)
UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Console logs / stack traces
Please wrap in triple backticks (```) to make it easier to read.


error 1

Found plugins with same names, Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dll and Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86_64/assimp.dll. Delete the one of the duplicate plugins.
UnityEditor.AndroidPluginImporterExtension:CheckFileCollisions (string)
UnityEditorInternal.PluginsHelper:CheckFileCollisions (UnityEditor.BuildTarget)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 2

Plugins colliding with each other.


error 3

Build completed with a result of 'Failed' in 14 seconds (14151 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


error 4

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Expected behavior
A clear and concise description of what you expected to happen.

Clicking "Build" should result in project compiling and exporting an APK.

Troubleshooting note: The project will build an APK if I remove the URDF-Importer package.

Screenshots
If applicable, add screenshots or videos to help explain your problem.

Environment (please complete the following information, where applicable):

  • Unity Version: [e.g. Unity 2020.2.0f1]
      • Unity 2020.3.17f
  • Unity machine OS + version: [e.g. Windows 10]
      • Win 10 Razr 14 AMD CPU w/ 3080 NVIDIA GPU
  • ROS machine OS + version: [e.g. Ubuntu 18.04, ROS Noetic]
      • Foxy w/ Noetic ROS 1
  • ROS–Unity communication: [e.g. Docker]
      • TCP-Endpoint is set up but not actively connected.
  • Branch or version: [e.g. v0.2.0]

Additional context
Add any other context about the problem here.

I have tried

      • Deleting the Library and recompiling -> still fails with duplicate DLLs
      • reimporting all assets > still fails with duplicate DLLs

If I remove the URDF-Importer package the project builds normally.

@hyounesy
Copy link
Contributor

Thanks for reporting the issue @abruce33. Can you please try the following:

@hyounesy hyounesy added the bug Something isn't working label Jan 25, 2022
@hyounesy
Copy link
Contributor

Internal ticket# [AIRO-1688]

@abruce33
Copy link
Author

abruce33 commented Jan 25, 2022 via email

@abruce33
Copy link
Author

So the AsimpNet.DLL is managed and properties will not allow me to deselect 'all platforms' so as to exclude Android from the build. I've started a 'Unity Answers' thread on the DLL unselectable issue here: https://answers.unity.com/questions/1883562/dll-properties-grayed-out-unselectable-unable-to-e.html

@abruce33
Copy link
Author

Update,

Thanks for reporting the issue @abruce33. Can you please try the following:

* In the project window, select the AssimpNet.dll file (com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/AssimpNet.dll)

* In the inspector, exclude it from the android build (https://docs.unity3d.com/Manual/PluginInspector.html)

Update on my end, The Inspector properties for AssimpNet.dll are locked and unselectable. Therefore I am unable to exclude it from the android build. I am able to access other DLLs in the plungin inspector, but the problematic DLL is locked/unselectable.

Please let me know if there is an alternative way to deactivate the DLL, or "unlock" it's settings in the plugin Inspector?

Thanks,
Adam

@at669
Copy link
Contributor

at669 commented Feb 11, 2022

@abruce33, you can open up the package for local editing by adding the package from disk instead of via Git URL--you can follow the steps in the Workflow section of this doc to unlock these files for editing.

@sergiosolorzano
Copy link

sergiosolorzano commented Dec 19, 2022

I'm having the same problem in UWP, Unity 2021.3.15f1, Unity 2020.3.11, Unity 2022.1.24, URDF importer 0.5.2 preview

C:\AR-VR-Github\Robotics-Hub-PandP\Build-Release\Robotics-Hub-PandP\Robotics-Hub-PandP.vcxproj : error : Cannot load project with duplicated project items: C:\AR-VR-Github\Robotics-Hub-PandP\Build-Release\Robotics-Hub-PandP\assimp.dll is included as 'None' and as 'None' item types.

@abruce33 Did you solve this?

Thank you, Sergio

@venkataprasad-git
Copy link

delete Packages/com.unity.robotics.urdf-importer/Runtime/UnityMeshImporter/Plugins/AssimpNet/Native/win/x86/assimp.dl and its meta file it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants