How to apply plugin to only one flavor in gradle?

Use this code: if (!getGradle().getStartParameter().getTaskRequests() .toString().contains(“Develop”)){ apply plugin: ‘com.google.gms.google-services’ } getGradle().getStartParameter().getTaskRequests().toString() returns something like [DefaultTaskExecutionRequest{args=[:app:generateDevelopDebugSources],projectPath=”null”}] so as stated in the comments Develop must start with an uppercase.

What happens in BeginProcessRequest()?

What you might be seeing is commonly referred to as thread agility in .NET. What you’re probably seeing as far as the results underneath the topical label (i.e. Application code in System.Web.HttpApplication.BeginRequest()) is a thread agility problem; in most cases the time you see here isn’t necessarily code being executed but the web context waiting … Read more