简体   繁体   English

资源文件(color.xml,string.xml,style.xml)

[英]Resource files (color.xml, string.xml, style.xml)

As I am going to open files in the values (color.xml, string.xml, style.xml). 当我要打开值(color.xml,string.xml,style.xml)中的文件时。 they are not showing the text that they have! 他们没有显示他们拥有的文字! I don't know why it is happning. 我不知道为什么会这样。 if you ever have face this sort of problem. 如果您遇到过此类问题。 please give me solution. 请给我解决方案。

I have clean the project and rebulit project. 我已经清理了这个项目,然后重做了一个项目。

//colors.xml //colors.xml

<?xml version="1.0" encoding="UTF-8"?>
    <project version="4">
        <component name="AndroidLayouts">
            <shared>
                <config />
            </shared>
        </component>
        <component name="ChangeListManager">
        <list def

在此处输入图片说明

Try deleting .android and .AndroidStudio[your version number] folder from C:\\Users\\ [your PC name] 尝试从C:\\ Users \\ [您的PC名称]中删除.android.AndroidStudio [您的版本号]文件夹

Also try doing the following (optional) 另外,请尝试执行以下操作(可选)

  • DELETE Project Name.iml file from you project directory 从您的项目目录中删除项目Name.iml文件

  • DELETE app.iml file from your Project Name /app directory 从您的项目名称 / app目录中删除app.iml文件

Project Name is the name of the project that you set when you first created your project in Android Studio. 项目名称是您首次在Android Studio中创建项目时设置的项目的名称。

Relaunch Android Studio. 重新启动Android Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM