Troubleshooting "Unable to convert classes into dex format" errors

Hello!

I’m trying to fix this error that occurs when building an Android game:

CommandInvokationFailure: Unable to convert classes into dex format.
C:/Program Files/Java/jdk1.8.0_151\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/laur/AppData/Local/Android/Sdk	ools" -Dfile.encoding=UTF8 -jar "D:\Program Files\Unity 5.6\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/internal/zzcq;
1 error; aborting
]
stdout[
processing archive <project>\Temp\StagingArea\android-libraries\ChartboostSDK\libs\.\chartboost.jar...

I understand that when processing the chartboost.jar it finds that Lcom/google/android/gms/internal/zzcq has already been added, but I can’t figure out how I should know where it was added exactly.

I don’t have any duplicate aars/ jars inside my project:

I highlighted location because I disabled it for android trying to fix this issue. That list of error was longer (4), but now I only have the one mentioned above left.

How can I troubleshoot this issue? Is there anyway I can tell Unity just to ignore classes that were already added?

Thank you!

Eh well, I removed all support .aars, except support-v4 and it works. Apparently these libs are usefull only for very old API levels, which don’t support my game anyway.