androidStudio does not prompt for layout attributes (it does not automatically prompt for related attributes when entering an id)

The problem is as shown in the figure:

 Do not automatically prompt when entering the id, or enter other attributes, such as: TextSize, etc.

My solution is:

Modify the compileSdk level in the build.gradle file under the app. There is a problem with the 33 I used, but there is no problem with 32, as shown in the figure:

 After modification, remember to click the sync button in the upper left corner. After the sync is completed, my project works fine:

There is already a prompt when entering the id again. 

おすすめ

転載: blog.csdn.net/gaoqingliang521/article/details/126481850