Multiple Dex Files in default gradle output

I posted this over on Stack Overflow with no luck:
https://stackoverflow.com/questions/45025831/multiple-dex-files-in-default-unity-gradle

After hitting the 65k limit we need to start exporting our project and using Proguard, but I can’t seem to get past the error

Multiple dex files define Lcom/myproject/myappname/BuildConfig;

It seems like there is a library within my project with the same bundle name as my app, probably created because we use the Assets/Plugins/Android/res folder to set our app name for different languages. If anyone has any experience with this issue I’d really appreciate some help!

Bumping this, we have the same problem.

This worked for me
credit to: How to fix build error with UnityAds after upgrading to Unity 5 - SPIKYTHING

  • Close Unity Editor
  • Backup your project
  • Remove any folder or meta file called UnityAds from your project’s Assets/Libs folder
  • Remove any folder or meta file called UnityAds from your project’s Assets/Plugins/Android folder
  • Start Unity
  • Build your project for Android

If this doesn’t work, try doing an Assets > Reimport All, then building again. Hopefully, future version of Unity will solve this problem automatically. Good luck out there!