Gradle7.4.2 can not implementation local jar

gradle7.4.2 can not implementation local jar

the error is npe.

* Exception is:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':client:rest'.

at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:116)

Caused by: java.lang.NullPointerException

I need to use local jar into project, used gradle 5.4.2 is success, but use 7.4.2, always error…

I use many method to test, but can not access…

//  api fileTree(dir: 'lib', include: ['*.jar'])
//  implementation 'com.dianping.cat:cat-client:3.3.33'
//  api files('../libs/cat-client-3.3.33.jar')
//  implementation fileTree(dir: 'libs', include: ['*.jar'])
//  implementation files('src/main/resources/lib/cat-client-3.3.33.jar','')
//  implementation(files("src/main/resources/lib/cat-client-3.3.33.jar"))
//  implementation(files("cat-client-3.3.33.jar"))
//  api(fileTree("src/main/resources/lib") { include("*.jar") })
//  implementation name: 'com.dianping.cat:cat-client:3.3.33'
//  implementation files('libs/foo.jar', 'libs/bar.jar')
//  implementation name: 'cat-client', version: '3.3.33', classifier: 'jar'
//  implementation files('src/main/resources/lib/cat-client-3.3.33.jar')
//  api 'trip:cat-client:3.3.33'
//  implementation files('libs/something_local.jar')

how to handle the exception?

thanks~~~