RecyclerView编译后运行报错

问题遇到的现象和发生背景

Android RecyclerView最全使用详解
您的这篇文章,我这边按照您的步骤执行,到下拉刷新,上拉加载时,编译没有报错,但是运行报错
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

问题相关代码,请勿粘贴截图

看着是和build.grade有关

运行结果及报错内容

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

我的解答思路和尝试过的方法

我看过博客里的文章,尝试修改build.grade,但是还是运行不起来
这个我的文件
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
}

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.3' //这里不用和我一样,和你项目里面的版本一样就行
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral ()
maven {url 'https://dl.bintray.com/jetbrains/anko'} //这是你需要加入的,这个是解决这个问题的关键地方,我就是添加这个maven后不再报上面的错误了
// maven {url "https://maven.google.com"} //谷歌广告
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
在项目下的,不是app下的build.grade

我想要达到的结果

运行不报错,能正常打包即可