找不到元素 'ScrollView' 的声明

Cannot find the declaration of element 'ScrollView'

我在 Android Studio 中出现以下错误,我真的不知道我做错了什么:

我尝试做一个干净的项目,但没有解决问题。

这是我的gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.example.cityguidetour"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.jakewharton:butterknife:10.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation fileTree(dir: 'libs', include: ['*.jar'])


}

有什么帮助吗?

一次尝试

Build-> Clean Project
Build -> Rebuild project
Build -> Clean Project
and restart android studio with File -> invalidate cache /Restart

最后我不得不删除项目并在 Android Studio 中创建一个新项目来解决这个问题。