Build wrong about com.enhance.gameservice

I was first to build cocos2dx-4.0 project,the below picture is the question

It tells me package com.enhance.gameservice doesn’t exist,I try to find answers on website,but I only
find several answer around 2016 year,anyone knows how to resolve it?Thanks.

Hi, same error here when I upgraded Android Studio 2023, Gradle and AGP

Have you found a solution?

Thank you

Found solution:

with gradle 8 you have to insert a buildFeatures:

android {
    buildFeatures {
        aidl true