I get an error when exporting with the AdMob plugin

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

I get an error when exporting with the AdMob plugin. I watched this video https://youtu.be/0a6EvlNgLL0.

After exporting, I get an error:

FAILURE: Build failed with an exception.

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

Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not “opens java.io” to unnamed module @2a9903df

  • 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 1s
7 actionable tasks: 1 executed, 6 up-to-date

I changed different versions of the ndk, changed them in config. gradle, but at the slightest change in the config, such errors appear

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\Users\kuzmi\Documents\SpaceTraveller\android\build\build.gradle’ line: 8

  • What went wrong:
    A problem occurred evaluating root project ‘build’.

Could not open dsl generic class cache for script ‘C:\Users\kuzmi\Documents\SpaceTraveller\android\build\config.gradle’ (C:\Users\kuzmi.gradle\caches\6.5\scripts\efl84qavhjj6wmjr7o6c9y2z\dsl6418c6d726070f323dbddda2aadc82ef).
BUG! exception in phase ‘semantic analysis’ in source unit ‘BuildScript’ Unsupported class file major version 60

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

help pls) I have the Godot 3.3 and AdMob 5.0.0

:bust_in_silhouette: Reply From: DEVU

Same problem bro. any time i use custom build i get this error.

No answers on the internet.

I fix this problem after reinstall Android Sudio, jdk, ndk and reset all export settings.

Dmitriy | 2021-08-11 18:06