Gradle - Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]
Replace implementation
with compile
.
compile
was recently deprecated and replaced by implementation
or api
Make sure your Gradle version is 3.*.*
or higher before using "implementation".
Open the project level Gradle file under dependencies:
dependencies{
classpath 'com.android.tools.build:gradle:3.1.2'
}
Open the 'gradle-wrapper.properties' file and set the distributionUrl
:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
or latest version.
Sync the project. I Hope this solves your problem.
Make sure you're adding these dependencies in android/app/build.gradle, not android/build.gradle