question-mark
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.

Error after updating Android Gradle to 4.2.0

See original GitHub issue

Configuration

  • Version: 0.8.1
  • Integration: native Kotlin

Issue Description

After updating Android Studio to 4.2.0 and Android Gradle to 4.2.0 I started getting the error, just when running the unit tests

Manifest merger failed : Attribute data@scheme at manifestMerger8985243458617216070.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.

Just some context, I have all the AppAuth related stuff in a separate model, called authorization. In that module it’s defined the manifestPlaceholders

android {
       default {
              manifestPlaceholders = [
                     'appAuthRedirectScheme': 'xxx',
              ]
       }
}

and also in the main app module I have the manifestPlaceholders.

when I run ./gradlew :authorization:testDebugUnitTest I get that error Manifest merger failed : Attribute data@scheme at manifestMerger8985243458617216070.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.

If I downgrade the Gradle to 4.1.3 everything runs fine.

Also, running the app in a device, no problems, just when running the tests.

Any ideia what’s happening ? Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
tallnatocommented, May 11, 2021

I’ve managed to make it work with this

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="xxx">

    <application>
        <activity android:name="net.openid.appauth.RedirectUriReceiverActivity" tools:node="replace"/>
    </application>

</manifest>
0reactions
wakkowcommented, May 13, 2021

@tallnato That’s what mine looks like as well. So far it seems to work fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Gradle error after upgrading to Android Gradle Plugin 4.2 ...
1. This might be being triggered by one of your other modules. AFAIK, Gradle reads in all of the modules' build scripts when...
Read more >
Known issues with Android Studio and Android Gradle Plugin
Known Issues with Android Studio · Error when rendering Compose Preview · Error when using different passwords for key and keystore · Android...
Read more >
Gradle 4.2.0 (distUrl: 6.7.1) fails with 'buildConfigFields' is final ...
Before that I was getting buildConfigFields error. I was using classpath("com.android.tools.build:gradle:3.5.3") and update to 4.0 or 4.2 just ...
Read more >
Upgrading your build from Gradle 4.x to 5.0
Try running gradle help --scan and view the deprecations view of the generated build scan. If there are no warnings, the Deprecations tab...
Read more >
Bug: IDE suggest to update gradle version for a new project ...
Steps to Reproduce: 1. Create new project. ... 4. Notice it says to fix gradle version instead of doing it on its own....
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found