How can I solved unknown entity errors facing in every project.
Unknown entity errors
Here is a full guide:
-
delete the
build
folder. -
clear cache (in some cases clear all data).
-
kill app.
-
build and run.
I did it still same problem. Firstly project was correct as I added Google library error occurred unknown entity. I am pro user aide ide still same what is bug bro.
Make sure you have imported your app’s R
import com.example.myapp.R;
Yes, if you are working on another package you need to import the R
.