Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Resolve Symbol @+id/ in .xml when using android:below_

Tags:

android

xml

I try to add a button into my layout. The layout previously does not contain any errors. But after I drag and drop the button into the layout, it shows an error as the picture below.

Cannor Resolve symbol "@+id/checksensortextview"

Even I already define @+id/checksensortextview .

Here is the code before and after I add the button. (Even I remove the added button, the errors still there).

Before and After add button into textview

I add the button in activity_evaluate.xml, but it affect every .xml file except activity_login.xml

Is anybody face the problem like this before?
Thank you for any solutions and suggestions.

like image 991
Pandarian Ld Avatar asked Apr 24 '26 16:04

Pandarian Ld


1 Answers

Invalidate Caches and Restart cleared that error for me.

like image 192
rtsketo Avatar answered Apr 26 '26 06:04

rtsketo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!