Android Studio的使用02-Can't resolve the symblo异常

1.异常

在引用R资源文件的地方都报错,提示 Can't resolve the symbol 'R',在Message栏显示错误如下图:

Android Studio的使用02-Can't resolve the symblo异常_第1张图片

百度搜索了一些方法,尝试了Build->clean Project 、Syncproject with gradle files都没能解决问题。


解决方法:

保持compileVersion SDK版本、Android Support Library版本和Build Tools版本一致性。我将所有版本都保持在23版本级别,问题解决了。


你可能感兴趣的:(Android Studio的使用02-Can't resolve the symblo异常)