Files under the build “ folder are generated and should not be edited Files under the build “ folder are generated and should not be edited

This is an error that makes me very speechless, look down --->

First of all, there was an error like this in my project

Every time I locate it on my EditText, but no error is reported from the file, only a few warnings (so I thought it was the reason for the warning, so I canceled the warning, but the error is still reported after 0 warnings)

So I followed the general method of solving resource link failures, and performed the following methods:

1. Restart Android  Studio  

2、syncProjectWithGradleFiles

 3. Solving the warnings in several other problems has no effect  

4. Clean and rebuild are useless   

5、Reload All from Disk

But it didn't work! ! ! ! ! !

I found the problem in my repeated modification of EditText: --->  android :background = "null"    is wrong, it should be  

android:background="@null"

Drop @, it will be solved after modification.

Generally, if you report this error, you should use the method to solve the resource link failure. If it doesn’t work, there is a problem with the code, and you should check the code carefully! ! !

Supongo que te gusta

Origin blog.csdn.net/weixin_56691212/article/details/123915822
Recomendado
Clasificación