简体   繁体   English

找不到声明

[英]Cannot find declaration

I upgraded to Android Studio V3. 我已升级到Android Studio V3。 On one of my projects (not all) I am getting this; 在我的一个项目(不是全部)中,我得到了这个。

<resources xmlns:ns1="urn:oasis:names:tc:xliff:document:1.2">

This is in values.xml (a system therefore uneditable file) and is giving me 这在values.xml(系统因此无法编辑的文件)中,并给了我

Cannot find the declaration of element 'resources' 找不到元素“资源”的声明

This is an error that is preventing my project from building. 这是一个导致我的项目无法构建的错误。 Any ideas on what I can do to remove xliff? 关于如何删除xliff的任何想法?

Turns out the problem was not with the resources tag but with a nested item tag. 原来问题出在资源标签上,而不是资源标签上。 The item tag was set by a colour item in the styles.xml. item标签是由styles.xml中的颜色项设置的。 I removed the item tags from the styles xml and the project built. 我从样式xml中删除了项目标签,并构建了项目。 This was after messing around with the theme editor for a couple of hours. 这是在与主题编辑器闲逛了几个小时之后。

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

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