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.

Issue: EasyLauncherConfig with name not found

See original GitHub issue

I’m facing following issue when trying to setup the plugin for any buildType:

EasyLauncherConfig with name ‘debug’ not found.

My configuration in app/build.grade

android {
    // ...

    buildTypes {
        getByName("debug") {
            // ...
        }
    }

    // ...

}

easylauncher {
    buildTypes {
        getByName("debug") {
            chromeLike()
        }
    }
}

Why is this not working? I’m not 100% familiar with kts so there is a good chance that I’m missing something.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mikef-dkcommented, Oct 10, 2020

I was about to post that as well but once again you were faster than me. 😉

You’re right: filters(chromeLike()) is the correct call.

easylauncher {
    buildTypes {
        register("debug") {
            filters(chromeLike())
        }
    }
}

Everything works perfectly now. Thanks again for your help. Maybe I’ll add a *.kts sample to the project. 😉

1reaction
mateuszkwiecinskicommented, Oct 10, 2020

Unfortunately I can’t verify that right now, but one of:

        register("debug") {
            filters(chromeLike())
         }

or filters = chromeLike(), or setFilters(chromeLike(), or setFilters(listOf(chromeLike()) should work 🤞

If you’re using Android Studio you should have an autocomplete suggestion on how to set the filters (it worked for me when fixing kts support https://github.com/usefulness/easylauncher-gradle-plugin/pull/60)

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - EasyLauncherConfig with name 'debug' not found
I found the solution. Instead of using getByName(...) I used register(...) easylauncher { buildTypes{ register("debug") { filters( ...
Read more >
Easylauncher gradle plugin for Android - GitHub
Providing Icon Names. By default, the plugin automatically discovers launcher icon and applies provided filters. Custom icon names, useful i.e. when defining ...
Read more >
Different Ways to Fix "Configuration with name 'default' not ...
How To Solve 'Configuration with name 'default' not found'? Method 1. Step 1: Open your app's gradle file. Step 2: Look for the...
Read more >
Configure build variants | Android Developers
This page shows you how you can configure build variants to create different versions of your app from a single project and how...
Read more >
Gradle Plugins - Easylauncher - The Android Arsenal
Warning: please not that easylauncher doesn't yet support vector drawables. Please feel free to contribute a PR solving the issue ...
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