So when I try to build android app, I get these duplicate errors and also warnings about mapping new ns.
I tried many different configuration and sdks etc. For now my setup is:
- Unity 2019.4.40f1
- Android SDK, JDK and NDK downloaded as a modules from unity hub (I tried different ones, nothing changes)
- Gradle 6.9.2 (already tried the latest one version, still same)
My target api is level 30 and minimum is 21.
I am using many libraries for my project like Branch.io for deeplinks, playfab, googleplayservices, facebook sdk etc. It might be the issue, but I am not sure.
I tried also export my project and it works surprisingly.
Also what's important I use custom gradle.properties file which looks like that:
CodePudding user response:
Finally, I solved this by deleting old jars located in gradles templates location, for me: Assets>Plugins>Android