Unity 2018.3 Android Dex Merging Issue
Solution 1:
You can open the PackageManage under Window in the menu bar and remove Advertisement or you can delete the com.unity.ads file of Library/PackageCache in the project directory to resolve this issue.
Solution 2:
This error probably happens when you add a library which is not compatible with your compileSdkVersion. In your case you can have libs that were not imported by default by unity (and now are) or there can be a problem with the Build Tools version. (You can try updating them)
I had similar problem a few versions ago, but I don't remember how I fixed it. I didn't have time to upgrade to unity 2018.3 yet. (So the tips are more like guesses, but it may help you solve the issue.)
Solution 3:
My settings (Mac): - Android Studio 2.3 - Unity 2019.1.5f1: - Player Settings -> Other Settings –> Scripting Runtime Version = .Net 4 - Package Manager -> Advertisement: Uninstalled - Preferences -> External Tools -> Android: checked Installed with Unity (everything)
My solution: - delete GoogleMobileAds from project - delete PlayServicesResolver from project - delete Plugins from project - Import Package -> Custom Package -> GoogleMobileAds.unitypackage (3.15.1 in my case)
Solution 4:
Dex Errors generally occur when you have too many methods imported in a project, not because of a specific package. I assume upgrading to new version made you import new stuff to your project.
You need to enable ProGuard.
Cause: http://twinkfed.homedns.org/Android///tools/building/multidex.html
Post a Comment for "Unity 2018.3 Android Dex Merging Issue"