close

[Solved] Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to make build but I am facing following error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] 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 This Error Occurs ?

I am trying to make build but I am facing following error.

Error:(74, 1) A problem occurred evaluating project ‘:app’.
> Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

How To Solve Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] Error ?

  1. How To Solve Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] Error ?

    To Solve Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] Error You Just need to Replace compile with implementation. Because compile was recently deprecated and replaced by implementation or api. Now, Your error must be solved. Second solution is Just make sure You are adding dependencies in android/app/build.gradle.

  2. Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]

    To Solve Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0] Error You Just need to Replace compile with implementation. Because compile was recently deprecated and replaced by implementation or api. Now, Your error must be solved. Second solution is Just make sure You are adding dependencies in android/app/build.gradle.

Solution 1: Replace compile with implementation

You Just need to Replace compile with implementation. Because compile was recently deprecated and replaced by implementation or api. Now, Your error must be solved.

Solution 2: Add dependencies in android/app/build.gradle

Just make sure You are adding dependencies in android/app/build.gradle.

Solution 3: Follow this

compile is removed since end of 2018, so make sure that you use only implementation now.

Summary

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