• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android Error compiling apk ( implementation() for arguments [com.google.android.gms:play-services-ads:17.2.1] )

D

Datyus

Guest
When I try to create an android game the following error appears.

* Where:
Build file 'W:\com.company.game\build.gradle' line: 63

* What went wrong:
A problem occurred evaluating project ':com.company.game'.
> Could not find method implementation() for arguments [com.google.android.gms:play-services-ads:17.2.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 55.429 secs

C:\WINDOWS\system32\cmd.exe DONE (1)

C:\WINDOWS\system32\subst.exe /d W:

C:\WINDOWS\system32\subst.exe DONE (0)
Error : Build Failed
Igor complete.

I've tried to solve it, but I can't.
 

chirpy

Member
Upgrade your Android Studio / gradle versions, or maybe try replace "implementation" in the gradle injections with "compile".
I'd recommend upgrading Android Studio with a clean install.

If everything is fresh and this still happens I don't know; you might want to contact YYG help desk instead.
 
Top