Gradle related bundle error (SOLVED)

Hello! I’ve been trying to bundle my mobile app but it fails towards the end of the process.

I can build though, remote and local engine no problem.

Is it a server-side issue or do I have to do something?

For the full log, see C:\Dev\Defold Engine Projects\Rogue-Elements\build\arm64-android\log.txt

Could you post this too? Also, are you using any extensions?

Here it is! Also, yes I do use extensions. There is the Rive extension, admob and rendercam!

log.txt (26.7 KB)

This looks to be the main error:

Could not find method compile() for arguments [com.google.android.gms:play-services-ads:21.3.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

I don’t know a lot about Gradle, but StackOverflow says it means the build file is using a feature that was removed in Gradle 7 and that should have been fixed in 3.1.2 of the AdMob extension. Are you sure you’re using the latest version of it?

4 Likes

Well played, you nailed it! The app finally bundled. I have been recommended to use a set version of any extension so I wasn’t using the latest admob version.

Thank you a lot, I don’t think I would have found it by myself!

3 Likes