Android Studio 每次运行前都需要重新构建项目 [英] Android Studio need to rebuild project before each run
问题描述
最近android studio 显示Error Java cannot find Symbol or each run.我必须在每次运行之前去构建和重建项目.有什么办法可以解决吗?不知道是我的项目问题还是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?
推荐答案
这是一个已知的问题.也许你应该试试这个:
It's a known issue. Maybe you should try this:
这里有同样的问题,为了避免每次都重建,我要去我的模块项目设置 -> 依赖项和我的库项目之一 -> 应用 -> 好的 -> 重新生成 R.java.>
Same issue here, to avoid rebuild EACH TIME, i'm going to my module project settings -> Dependencies and up or down one of my library item -> Apply -> Ok -> Make regenerating 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屋!