我安装了android studio 3.1.2并显示错误

时间:2018-05-30 17:55:17

标签: android android-studio

在已安装的android studio 3.1.2中,它显示以下错误。

C:\ Users \ ADC-2 \ AndroidStudioProjects \ MyApplication5 \ app \ src \ main \ res \ values \ colors.xml:6:40:错误:XML文档结构必须在同一个实体内开始和结束。

color.xml

<?xml version="1.0" encoding="UTF-8"?><!--
/*
 ** Copyright 2016, The Android Open Source Project
 **
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in 

1 个答案:

答案 0 :(得分:0)

如果您更新了Android studio并打开了现有项目,请尝试从Android studio的文件菜单选项中选择Invalidate Caches / Restart选项。如果您仍然遇到问题,请打开项目位置文件夹,删除.idea和.impl文件,然后在Android studio中重新打开该项目。我希望这对你有所帮助。