Android Studio需要在每次运行之前重建项目 [英] Android Studio need to rebuild project before each run
问题描述
最近,Android Studio显示错误Java无法找到Symbol或每次运行.我必须在每次运行之前去构建和重建项目.有什么办法可以解决? 我不知道我的项目问题还是android studio最新更新的问题. 有人面临同样的问题吗?有什么办法解决吗?
Recently the android studio shows Error Java cannot find Symbol or each run. i have to go to built and rebuilt the project before each run. Is there any way to fix it? i don't know if my project problem or the problem of the latest update of android studio. is anyone facing the same problem ? any way to fix it?
推荐答案
这是已知的 issue .也许您应该尝试以下方法:
It's a known issue. Maybe you should try this:
这里有同样的问题,为避免每次重建,我将转到模块项目设置->依赖项,并上下移动我的一个库项目->应用->确定->生成R.java.>
您还可以尝试在编译器设置中取消选中使用外部版本":
You could also try unchecking "Use external build" in compiler settings:
文件->设置(Ctrl + Alt + S)->编译器->取消选中使用外部版本"
File -> Settings (Ctrl+Alt+S) -> Compiler -> Uncheck "Use external build"
这篇关于Android Studio需要在每次运行之前重建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!