Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't build UGD with multidex

See original GitHub issue

Hi! I had to enable multidex in my project (this article was used, 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:

Hope to find a solution soon…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

hippogamesunitycommented, Aug 6, 2021

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. (

I was trying to modify all .gradle files inside Unity installation folder one by one and have found a possible solution:

  • open Editor\Data\PlaybackEngines\AndroidPlayer\Tools\GradleTemplates\launcherTemplate.gradle
  • add manifestPlaceholders = [appAuthRedirectScheme: 'com.redirectScheme.comm'] to defaultConfig

This 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.

ROBYER1commented, Jul 12, 2022

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build with multidex enabled
Officially Unity does not support multidex. Instead we suggest to use Proguard's minify option. Should `multiDexEnabled true` be set in the ...
Read more >
Enable multidex for apps with over 64K methods
This page explains how to move past this limitation by enabling an app configuration known as multidex, which allows your app to build...
Read more >
Understanding and Solving the Multidex Problem in Android
In some cases, your Android project might fail to build if reference methods exceed 65,536. In this tutorial, we will learn how to...
Read more >
Android Gradle Multidex Build issue on API 19
Alternative to that, If your app extends the Application class, you can override the attachBaseContext() method and call MultiDex.install(this) ...
Read more >
Build fails when using plugin because multidex.jar and ...
Expected Behaviour App is build Actual Behaviour App is not built because it cannot find required .jar files. Reproduce Scenario (including ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found