What:
error:Androidstudio 新建工程 colors.xml 文档结构必须从头至尾包含在同一个实体内
在使用Android Studio创建工程运行时,突然报错,其中在color.xml发现没有成对结束xml,xml文件和正常创建的xml有点出入,
然后尝试从一个正常的color.xml copy到该demo,发现其他的xml文件,res文件下其他的如ic_launcher等等xml也发生了报错
WHY:
从论坛上看到是Android Studio本身的一些问题
HOW:
Follow these steps your problem will be solved:-
-
Close the Android Studio.
-
Go to: C:\users\your_user_name\.AndroidStudio3.4\system\caches
-
Delete the caches folder.
-
Go to: C:\Users\your_user_name\.gradle\caches
-
Delete this caches folder also.
-
Now you can start your Android Studio and start working.
Your Problem will be solved.
可以看下解决的链接:stackoverflow