简体   繁体   English

未定义Android Studio符号R无法解析符号“ R”

[英]Android Studio Symbol R is not Defined cannot resolve symbol “R”

A common problem with android studio is that the symbol "R" is not defined. android studio的常见问题是未定义符号“ R”。 I know you can fix this by building the project again, but I do not know if there is a permanent fix for it. 我知道您可以通过再次构建项目来解决此问题,但是我不知道是否有永久的解决方案。 It happens every five minutes and gets quite annoying. 它每五分钟发生一次,并且非常烦人。 I am using android studio 2 (i am unsure of exact version). 我正在使用android studio 2(我不确定确切的版本)。 If there is no permanent fix, can someone recommend a way to develop android apps alternatively. 如果没有永久性修复程序,有人可以推荐一种替代方法来开发android应用程序。

单击生成->重建项目,然后单击工具-> Android->与Gradle文件同步项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM