I updated to API 33 and now there is an error in the designer "unexpected resource type 'dimen' expected: string". This error does not affect anything, but I would like to remove it.
This error appeared when I changed compileSdkVersion and targetSdkVersion in build.gradle from version 32 to version 33. (minSdkVersion uses version 24).
Resource file:
<resources>
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>
- For the sake of experimentation, I tried changing
dimentostringand it worked, but obviously it shouldn't be that type as Android Studio requests localization for other languages. - I also tried to lower the API version and it helped.
- Also, I decided to create a new text project based on API 33 and there was the same error there too.
CodePudding user response:
Today there was an update for Android Studio and this bug has been fixed.

