YoYoGames/GMEXT-Firebase

android build fail

Closed this issue · 7 comments

Task :com.guris.undergrounds:mergeExtDexDebug FAILED
ERROR:D8: com.android.tools.r8.kotlin.H

Task :com.guris.undergrounds:compressDebugAssets
Task :com.guris.undergrounds:processDebugResources

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':com.guris.undergrounds:mergeExtDexDebug'.

Could not resolve all files for configuration ':com.guris.undergrounds:debugRuntimeClasspath'.
Failed to transform play-services-measurement-api-21.5.0.aar (com.google.android.gms:play-services-measurement-api:21.5.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingWithClasspathTransform: C:\Users\searo.gradle\caches\transforms-3\9d7c9488a669dd05456d433bf7a33f63\transformed\jetified-play-services-measurement-api-21.5.0-runtime.jar.
> Error while dexing.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    java.lang.StackOverflowError (no error message)

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
==============================================================================

BUILD FAILED in 5s
20 actionable tasks: 4 executed, 16 up-to-date

Hello @searoopy!

I just tested Firebase on IDE v2024.6.2.162 Runtime v2024.6.1.208 and it's working as expected, can you send us the whole output? and please check your setup, package name, .plis and .json files, etc

Regards

@searoopy please attach a text file with the full output when fails.

when I first added the extension, the files look complete, but after the first attempt, when I check the files locally, I notice that the files have changed. i've tried it many times and I get the same result

Options: C:\Users\abdul\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Firebase_D0D56A01\macros.json
Options: C:\Users\abdul\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Firebase_D0D56A01\preferences.json
C:\Users\abdul\Desktop\firebase\extensions\FirebaseSetup\pre_build_step.bat
[F�REBASESETUP] INIT: Script initialization succeeded (v1.2.2 :: 1).
[F�REBASESETUP] WARN: Path 'C:\Users\abdul\Desktop\firebase\extensions\FirebaseSetup\AndroidSource\ProjectFiles' does not exist. Skipping deletion.
"Copying Android Firebase credentials into your project."
.json was unexpected at this time.

C:\Users\abdul\Desktop\firebase\extensions\FirebaseSetup\pre_build_step.bat exited with non-zero status (255)
elapsed time 00:00:03.5408802s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2024.6.1.208/bin/igor/windows/x64/Igor.exe" -j=8 -options="C:\Users\abdul\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Run started at 07/28/2024 01:23:56
FAILED: Run Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.

Hello! @abdullah2054, it's your issue related to this created by @searoopy?

@jzavala-YYG it seems like he forgot to include google-services.json file.

For the topic, I also have this issue. Only certain Firebase plugins cause this. The source of this issue is the old gradle version of Game Maker, that needs to be upgraded to version 8 or something to match the API Level 34.

This is fixed upgrading the android Gradle. will be fixed in future releases