Android Studio显示导入错误 [英] Android Studio Showing imports error

查看:180
本文介绍了Android Studio显示导入错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前有这个问题,但是在解决了这个问题之后,问题开始出现.

I previously had this issue but after this issue was resolved a new issue started coming up.

导入显示错误Cannot resolve the symbol x.

例如,以下所有内容均显示错误.

For ex All the below are showing error.

import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.WindowManager;
import android.widget.LinearLayout;

我已经在两个项目上对此进行了测试,并且对于两个项目都显示出错误.任何帮助将不胜感激.

I have tested this on two project and for both the projects it is showing error. Any help would be grateful.

推荐答案

尝试了Web和其他Stack溢出帖子中存在的所有解决方案,但没有一个起作用.

Tried all the solution present in the web and other Stack overflow posts but non of them worked.

最后,我不得不重新安装Android Studio,这为我解决了这个问题.

这篇关于Android Studio显示导入错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆