导入android.view.view;无法解析符号';视图';

导入android.view.view;无法解析符号';视图';,android,android-studio,android-layout,android-intent,Android,Android Studio,Android Layout,Android Intent,在android studio 3.4.1中,单击listener,而不是fount,现在显示setOnEditorActionListener bth.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent

在android studio 3.4.1中,单击listener,而不是fount,现在显示setOnEditorActionListener

bth.setOnEditorActionListener(new TextView.OnEditorActionListener() {
                @Override
                public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
                    return false;
                }
            });
导入android.view.view
无法解析符号“视图”

这是一个正在工作的项目,它显示了此错误
如果我运行,它将无任何问题运行
我从另一台
PC
上打开它,没有这样的问题


我正在使用最新的android studio 3.4.1

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:animated-vector-drawable:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:design:28.0.0'
    //firebase
    implementation 'com.google.firebase:firebase-core:16.0.4'
    implementation 'com.crashlytics.sdk.android:crashlytics:2.9.6'
    //slider
    implementation project(':library')
    //glide
    implementation 'com.github.bumptech.glide:glide:4.7.1'
    //recyclerview gravity
    implementation 'com.github.rubensousa:gravitysnaphelper:1.5'
    // rating library
    implementation 'com.github.ome450901:SimpleRatingBar:1.4.2'
    //cardview
    implementation 'com.android.support:cardview-v7:28.0.0'

    //retrofit
    implementation 'com.squareup.retrofit2:retrofit:2.3.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

    implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'

    //timber-logging interceptor
    implementation 'com.jakewharton.timber:timber:4.7.1'

    //round corner image
    implementation 'com.makeramen:roundedimageview:2.3.0'

    //Html tag remover
    implementation 'org.jsoup:jsoup:1.11.3'

    implementation 'com.google.code.gson:gson:2.6.2'

    //    dots indicator
    implementation 'com.ryanjeffreybrooks:indefinitepagerindicator:1.0.10'
    implementation 'com.tbuonomo.andrui:viewpagerdotsindicator:2.1.2'

    implementation 'com.google.firebase:firebase-messaging:17.6.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1'
    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'

    // for unit test
    testImplementation 'com.squareup.okhttp3:mockwebserver:3.12.0'
    testImplementation 'org.mockito:mockito-android:2.7.22'

    implementation 'com.github.sharish:ShimmerRecyclerView:v1.3'


}
我尝试了无效的现金并重新启动
重新启动电脑
重新安装android studio
但没有结果
我的团队成员android studio confi
Android Studio 3.2.1
建造#AI-181.5540.7.32.5056338,建造于2018年10月9日
JRE:1.8.0_152-release-1136-b06 amd64
JVM:JetBrains s.r.o提供的OpenJDK 64位服务器虚拟机
Windows 10.0

我的android工作室

Android Studio 3.4.1
建造#AI-183.6156.11.34.5522156,于2019年5月2日建造
JRE:1.8.0_152-release-1343-b01 amd64
JVM:JetBrains s.r.o提供的OpenJDK 64位服务器虚拟机
Windows 10.0


该项目来自git


抱歉,这来得太晚了,我遇到了同样的问题,经过数小时的搜索,我发现View类已损坏,您可以通过删除SDK(android 28)中的平台并安装一个新平台来修复该问题,希望这有助于Goodluck

您确定没有其他Gradle错误吗?这种导入失败通常与无法同步/生成的项目相关。如果无法导入视图,我打赌在项目/渐变结构中会有更深层次的问题。我知道你是说如果你运行这个,它会工作吗?如果你转到命令行并键入
/gradlew clean assembleDebug
?(在项目文件夹中)但在我的团队成员PC中使用相同的代码,他们使用的是旧的android studio v,而我使用的是最新的。这只是参考资料。老实说,您需要提供更多信息。基本上,您没有提供关于您的机器中有什么不同的信息(AS版本除外)。你的同事使用的是什么版本的Android Studio?+1,当我在Windows上时,chkdsk在我的设备上损坏了几次sdk文件。但也可能是一个梯度缓存问题