android - android studio中的重复属性错误
问题描述
我正在制作一个应用程序,但收到一个错误,说 R 无法解决。谁能帮我解决这个问题?
错误:重复属性。Message{kind=ERROR, text=error: duplicate attribute., sources=[/Users/Puja Dudhat/Library/Android/ForecastNEarthquake/app/src/main/res/layout/activity_main.xml:7], original message=,工具名称=Optional.of(AAPT)}
解决方案
我刚刚从 xmlns:tools="http://schemas.android.com/tools" 的 xml 文件中删除了重复项
推荐阅读
- git - VSCode devcontainers:在同一个devcontainer中克隆第二个存储库时git权限被拒绝
- reactjs - WebStorm 无法识别 Next.js 项目
- azure - 验证我的 Azure 帐户会打开一个安全性无效的 localhost 网页
- mysql - 如何将cassandra和Mysql配置为spring boot?
- spring-mvc - SPRING MVC:获取从表单返回的键值:选择
- firebase - 从 Firebase Cloud Function 获取当前日期和时间
- java - 简化多个构造函数
- ubuntu-20.04 - Android VTS 在 ubuntu20.4.3LTS 上失败
- javascript - 在循环中调用 ajax,它不会执行 2 次
- r - 从 URL 读取 csv 时出错:functionert 协议版本中的错误