If your project was normal before, the Android resource linking failed error suddenly appeared and could not be compiled. As shown below
Articles about android X adaptation are nonsense, go directly to the caches under .gradle to delete transforms-1 (preferably delete .idea and bulid in the project), restart android studio