Admob 扩展报错

在 Cocos Creator 3.8.2 中测试
Cocos Creator Google Admob Extension 报错:

2023-12-7 18:57:04 - log: [runCmd gradlew.bat - error] * What went wrong:

A problem occurred configuring project ':cocos-google-admob'.

  Could not create an instance of type com.android.build.api.variant.impl.ApplicationVariantImpl.

    Namespace not specified. Please specify a namespace in the module's build.gradle file like so:
     
     android {
         namespace 'com.example.namespace'
     }
     
     If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Gradle 版本: 默认 8.0.2

已解决:
https://forum.cocos.org/t/topic/149932/615

打包时出现新问题:
image
R 没有声明