I cloned a Github project and apparently I have this error. Here is the full error: Gradle sync failed: Could not find method implementation() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.enter image description here
Asked
Active
Viewed 1,205 times
1
-
does the libs directory exist in your project with the jar file? – Prateek Gupta Feb 19 '22 at 14:34
-
@PrateekGupta yes, the directory is [project-app]>app>libs>*.jar – Farah Amani Hashim Feb 19 '22 at 14:41
-
is the method implementation present in the jar then? verify this because the error highlights this – Prateek Gupta Feb 19 '22 at 15:15
-
@PrateekGupta no, how can I fix this? – Farah Amani Hashim Feb 19 '22 at 15:51
-
try to get source code from the jar file and verify. refer to this https://stackoverflow.com/questions/5107187/extract-source-code-from-jar-file – Prateek Gupta Feb 21 '22 at 05:29