首页 > 解决方案 > 我安装了 android studio 3.1.2 并显示错误

问题描述

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

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

颜色.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 

标签: androidandroid-studio

解决方案


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


推荐阅读