When I want to create TextView, ImageView and ... in my file xml, everything turns red and tag style appears instead of height and width the I have to copy and paste any features manually. The app will run although everything is red, like the attached photo. I also have cleared the cache through File ->Invalidate caches but the problem still exists.
I'm new to android and need some help. enter image description here
CodePudding user response:
upgrade your Gradle version.
classpath 'com.android.tools.build:gradle:7.0.1'
and sync the project.
after completing this process you face the same issue then goto File ->Invalidate caches & restart and select Invalidate & restart.