Cocos Creator 3.8.1构建安卓报错A problem occurred configuring project

Android Studio报错:

A problem occurred configuring project ‘:Game’.

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:
略…

cocos creator构建出来的android文件夹里只有两个build.gradle都不是,这个是什么情况?

1赞

检查了ndk、jdk、API Level都没问题,难道是macOs的问题?

已解决

https://forum.cocos.org/t/topic/149932/615?u=01foresty

是gradle版本的问题