android - 我安装了 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
解决方案
如果您已更新 Android Studio 并打开了现有项目,请尝试从 Android Studio 的文件菜单选项中选择 Invalidate Caches/Restart 选项。如果您仍然遇到问题,请打开项目位置文件夹,删除 .idea 和 .impl 文件,然后在 Android Studio 中重新打开项目。我希望这对你有帮助。
推荐阅读
- lua - 改变配色方案
- java - Junit测试用例Spring启动控制器在ResponseEntity中返回空值
- typescript - 我们应该在打字稿中显式声明变量的类型吗?
- haskell - 如何在Haskell中检查数字是否为八进制
- python - 在 OpenCV 中执行功能时保持流式传输视频?
- kotlin - Kotlin Coroutines - 异步消费一个序列
- javascript - 如何在 sveltekit 应用程序中将菜单项设置为活动状态
- javascript - 单击卡片以触发 div 内的按钮时超出最大调用堆栈大小
- redis - 如何在 apollo v3 中实现 redis 缓存?. 需要使用 npm 包 apollo-server-cache-redis 的完整示例实现
- r - [RShiny][Shinydashboard]根据另一个输入显示/隐藏不同的输入面板