'Android Studio v31/values-v31.xml keeps generating color codes

Im trying to fix this but idk why this v31 file keeps generating colors codes (see in SS) when I run my code, I keep deleting the color resources so that my code will run. just want to know how to stop it from doing that

Here is a screenshot of the error and the file
Here is a screenshot of the error and the file



Solution 1:[1]

Please follow this;

File --> Project Structure --> app(inside Modules) --> Dependencies -- Click "+" --> Library dependency --> Search "appcompat" and click "com.android.support:appcompat-v7(com.android.support:appcompat-v7:27.1.1)" --> click OK.

This should solve your error!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Amritpal Singh