close

[Solved] No signature of method: .android() is applicable for argument types. Exception in build.gradle (app)

Hello Guys, How are you all? Hope You all Are Fine. Today I am facing the following error while I am running my project To Solve No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error in java. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error Occurs ?

Today I am facing the following error while I am running my project.

Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'
Caused by: groovy.lang.MissingMethodException: No signature of method: build_h12dou32x8mktsbcdinr8fpc.android() is applicable for argument types: (build_h12dou32x8mktsbcdinr8fpc$_run_closure1) values: [build_h12dou32x8mktsbcdinr8fpc$_run_closure1@1630dea1]

How To Solve No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error ?

  1. How To Solve No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error?

    To Solve No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error Just replace androidResources with aaptOptions and the second solution is Check for there was an unwanted character(a semicolon) in build.gradle(app). Just remove extra semicolon rebuild the project problem solved.

  2. No signature of method: .android() is applicable for argument types. Exception in build.gradle (app)

    To Solve No signature of method: .android() is applicable for argument types. Exception in build.gradle (app) Error Just replace androidResources with aaptOptions and the second solution is Check for there was an unwanted character(a semicolon) in build.gradle(app). Just remove extra semicolon rebuild the project problem solved.

Solution 1: Just replace androidResources with aaptOptions

Just replace

androidResources {
   noCompress '...'
}

with

aaptOptions {
   noCompress '...'
}

Solution 2: Check for unwanted semicolon

Check for there was an unwanted character(a semicolon) in build.gradle(app). Just remove extra semicolon rebuild the project problem solved.

Solution 3: Remove this code

Just remove this code from your gradle file.

javaCompileOptions {
    annotationProcessorOptions {
        arguments = [fragmentArgsLogWarnings: 'false']
        includeCompileClasspath true
    }
}

Now, try to rebuild your project.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment