2

每当我创建新项目时,android studio 都不会完全构建 colors.xml 文件。colors.xml 文件是:

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

显然,android studio 给出了以下错误:错误:XML 文档结构必须在同一个实体内开始和结束。

4

1 回答 1

0

您的 XML 格式不正确。通常,此错误表明开始和结束标记的范围有问题。

         <?xml version="1.0" encoding="utf-8"?>
            <set xmlns:android="http://schemas.android.com/apk/res/android">

              <component android:name="AndroidLayouts">
                 <shared>
                   <config />
                 </shared>
             </component>

            </set> 
于 2018-10-13T10:54:57.680 回答