My Godot Android game fails to build when using custom build. PLS HELP

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Jamam150

I am trying to use the AdMob module in my game, and for some reason, when I use the custom android build to enable my AdMob plugin it gives me an error saying the following: - Do not that it works perfectly without the custom build. PLEASE HELP ME TO FIX THIS

Task :preBuild UP-TO-DATE
Task :preReleaseBuild UP-TO-DATE
Task :compileReleaseAidl NO-SOURCE
Task :generateReleaseBuildConfig UP-TO-DATE
Task :compileReleaseRenderscript NO-SOURCE
Task :javaPreCompileRelease UP-TO-DATE
Task :checkReleaseAarMetadata UP-TO-DATE
Task :generateReleaseResValues UP-TO-DATE
Task :generateReleaseResources UP-TO-DATE
Task :mergeReleaseResources UP-TO-DATE
Task :createReleaseCompatibleScreenManifests UP-TO-DATE
Task :extractDeepLinksRelease UP-TO-DATE
Task :processReleaseMainManifest FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processReleaseMainManifest’.

com.android.manifmerger.ManifestMerger2$MergeFailureException: java.io.FileNotFoundException: D:\Code\GameJam\android\build\build\intermediates\navigation_json\release\navigation.json (The system cannot find the path specified)

  • 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 13s
8 actionable tasks: 1 executed, 7 up-to-date

Exit Code: 1

D:\Code\GameJam\android\build\build\intermediates\navigation_json\release\navigation.json

Is file exist?

yrtv | 2021-02-07 13:30

:bust_in_silhouette: Reply From: avnih

Make sure you are using all the right versions and that your JAVA_HOME environment variable is set correctly.