首页 > 解决方案 > 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)}

标签: android

解决方案


我刚刚从 xmlns:tools="http://schemas.android.com/tools" 的 xml 文件中删除了重复项


推荐阅读