Ml-agents: Can't build for Android with 0.6

Created on 23 Dec 2018  路  5Comments  路  Source: Unity-Technologies/ml-agents

Since I upgraded to 0.6, I get these errors when trying to build for Android:

`Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.

error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android*System.Threading.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Threading.dll'. *Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android*System.Text.Encoding.dll*' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Text.Encoding.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Runtime.Numerics.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Runtime.Numerics.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Resources.ResourceManager.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Resources.ResourceManager.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Reflection.Extensions.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Reflection.Extensions.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Diagnostics.Debug.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Diagnostics.Debug.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Collections.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.dll'. Remove one of the duplicate references.
error CS1703: Multiple assemblies with equivalent identity have been imported: 'E:\Unity Projects\Game\Assets\ML-Agents\Plugins\Android\System.Collections.Concurrent.dll' and 'E:\Unity\Hub\Editor\2018.3.0f2\Editor\Data\MonoBleedingEdge\lib\mono\4.7.1-api\Facades\System.Collections.Concurrent.dll'. Remove one of the duplicate references.`

Any idea how to fix?

image
image
image

bug

Most helpful comment

I figure out that removing all the System.XXXX.dll from ML-Agents/Plugins/Android fixes the issue.

Edit: I'm not closing the issue so developers can fix

All 5 comments

i have this problom too, when i upgrade from 2017.3 to 2018.3. so how to slove it~

I figure out that removing all the System.XXXX.dll from ML-Agents/Plugins/Android fixes the issue.

Edit: I'm not closing the issue so developers can fix

Hi @13Flo

Thanks for pointing this out. We will be updating our inference solution for the next release of ML-Agents, and will ensure it is functional under Android without this issue.

Hi all. We are now using the internal inference solution. Closing this issue for now. Please feel free to re-open if you deem it necessary.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Porigon45 picture Porigon45  路  3Comments

RavenLeeANU picture RavenLeeANU  路  4Comments

MrGitGo picture MrGitGo  路  4Comments

Sohojoe picture Sohojoe  路  3Comments

GuntherFox picture GuntherFox  路  3Comments