LaTeX: Bibliography problem on Overleaf
Problem:
Every time I start a new project on Overleaf and need to move the references file (.bib), I always have a similar problem where the “.bib” file cannot be detected. I have tried to compile in the following manner:
pdflatex "file.tex" >> pdflatex "file.bib" >> pdflatex "file.tex" >> pdflatex "file.tex"
or
latex "file.tex" >> latex "file.bib" >> latex "file.tex" >> latex "file.tex"
but the problem still exists.
Solution:
The solution turns out to be simple: just clear the cache. That’s all. I follow an instruction provided on the following link: https://www.overleaf.com/learn/how-to/Clearing_the_cache.
- Select “Logs and output files”

2. Select “Clear cached files”

Then, try to compile the “.tex” file again.
I believe there must be other ways to address this issue, but at the moment it seems that I will rely more on this method.