我所有的布局xml文件都变成了自动生成的文件 [英] All my layout xml files became autogenerated files

查看:191
本文介绍了我所有的布局xml文件都变成了自动生成的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我的应用程序上的所有内容均正常运行,但是今天当我打开Android Studio时,所有xml文件均已损坏(?-不确定这是否正确)

每个人都看起来像这样

解决方案

我今天遇到了同样的问题,下面是我已经完成的一些步骤,我成功了来解决此问题.

只需将您的项目复制到另一个目录或更改项目位置 .并再次打开您的项目,这个简单的步骤对我有用.

我尝试过的其他步骤可能很少,这可能对您有用.

从下面的位置删除所有缓存文件

C:\ Users {您的PC名称} .gradle \ caches

C:\ Users {您的PC名称} .AndroidStudio3.2 \ system \ caches

同步您的项目gradle.

希望这会对您有所帮助.这种错误确实令人沮丧.

Yesterday everything on my app was working flawlessly but today when I opened Android Studio all the xml files were corrupt(?-not sure if this is the right term)

Every one looks like this

解决方案

I had face same issue today and below are few steps which i had done and i got success to resolve this issue.

Just copy your project into another directory or change project location. and open your project again this simple step works for me.

Few more steps which i had tried may be this one works for you.

Delete all cache file from below location

C:\Users{your pc name}.gradle\caches

C:\Users{your pc name}.AndroidStudio3.2\system\caches

Sync you project gradle.

Hope this will help you. This kind of error is really frustrating.

这篇关于我所有的布局xml文件都变成了自动生成的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆