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

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

问题描述

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

每个人都是这个样子

解决方案

我今天遇到了同样的问题,下面是我已经完成的几个步骤,我成功解决了这个问题.>

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

我尝试过的更多步骤可能适合您.

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

<块引用>

C:\Users{你的电脑名称}.gradle\caches

C:\Users{你的电脑名称}.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天全站免登陆