Can't build UGD with multidex
See original GitHub issueHi! I had to enable multidex in my project (this article was used https://habr.com/ru/post/487336/), but still can’t build on Android.
Manifest merger failed : Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.
I was trying to find a solution on web, but with no luck. Adding
manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
to mainTemplate.gradle doesn’t help. At the same time, I can build my project with multidex enabled after removing UGD (but this is not an option for me actually).
Also I’ve found that some people also mentioned UGD related to appAuthRedirectScheme issue here: https://forum.unity.com/threads/gradle-nightmare-appauthredirectscheme.831934/
Hope to find a solution soon…
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top GitHub Comments
Some Unity guy said
You could modify the template in the Unity install directory, but that is not supported and it will affect all of your projects built with that Unity version.
(https://forum.unity.com/threads/cant-build-with-multidex-enabled.773348/).I was trying to modify all .gradle files inside Unity installation folder one by one and have found a possible solution:
manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm']
to defaultConfigThis is a bad solution, but at least I was able to build, although it works only for ARMv7 and crashes on app start for ARM64. Also I wonder why modifying mainTemplate.gradle (generated inside your project after enabling
Custom Main Gradle Templage
option) doesn’t do the trick.Why is this closed if there isn’t a fix in the plugin? There must be some other way to work around this in the package itself?