in my project for build calculate has error like this :
void findView(){
btn_0=(Button)findViewById(R.id.btn_0);
btn_1=(Button)findViewById(R.id.btn_1);
and cannot resolve symbol for anythings have R ,what should i do ?
in my project for build calculate has error like this :
void findView(){
btn_0=(Button)findViewById(R.id.btn_0);
btn_1=(Button)findViewById(R.id.btn_1);
and cannot resolve symbol for anythings have R ,what should i do ?
if you are using gradle as your build tool, the problem is that the gradle is not synced with your project. and keep in mind that if you are developing in a restricted country, try using a proxy while syncing the gradle.
i think gradle
is not synced with your project. that's why it giving error that cannot resolve symbol for anythings have R
and R
is autogenerated and contains all IDs from your controls of layouts
so Build -- > Clean project --> Rebuild project.
to clean project
Build -- > Clean project --> Rebuild project and run your project again