删除R.Java文件,这时,系统会重新生成一个R.java;
- 删除java代码中的”import Android.R“文件。
重新导入正确的包。
相关文章
- 11-13关于“The import org.junit.jupiter cannot be resolved”出现错误
- 11-13as中出现错误:android.widget.Toolbar cannot be cast to androidx.appcompat.widget.Toolbar
- 11-13eclipse 提示错误**cannot be resolved to a type
- 11-13matlab里textread出现错误“Trouble reading floating point number from file (row 1, field 1)”
- 11-13在Android总出现R cannot be resolved to a variable怎么解决?
- 11-13Qt 出现QSslSocket: cannot call unresolved function...错误的解决办法(原)
- 11-13出现“cannot be resolved or is not a field“莫名错误的解决方法
- 11-13VUE中出现 Cannot read property ‘length‘ of undefined 的错误
- 11-13The type XXX cannot be resolved. It is indirectly referenced from required .class files错误.....
- 11-13CMake编译32位版本时出现“cannot find -lXXX”错误的两种可能情况