Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/211.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android studio中出现重复属性错误_Android - Fatal编程技术网

android studio中出现重复属性错误

android studio中出现重复属性错误,android,Android,我正在制作一个应用程序,但出现一个错误,表示R无法解决。有人能帮我解决这个问题吗 错误:重复属性。消息{kind=ERROR,text=ERROR:重复 属性,源=[/Users/Puja Dudhat/Library/Android/ForecastNEarthquake/app/src/main/res/layout/activity_main.xml:7], 原始消息=,工具名称=可选。of(AAPT)} 我刚刚从xml文件中删除了一个副本,它是xmlns:tools=”http://sc

我正在制作一个应用程序,但出现一个错误,表示R无法解决。有人能帮我解决这个问题吗

错误:重复属性。消息{kind=ERROR,text=ERROR:重复 属性,源=[/Users/Puja Dudhat/Library/Android/ForecastNEarthquake/app/src/main/res/layout/activity_main.xml:7], 原始消息=,工具名称=可选。of(AAPT)}


我刚刚从xml文件中删除了一个副本,它是xmlns:tools=”http://schemas.android.com/tools"


任何导入都在xml文件中定义了多个导入。检查一次。

您能在Android Studio中检查此文件吗?可能,它已经向您突出显示了错误所在的位置。如果你看不到任何东西,那么试着先进行清理,然后进行构建。如果通过添加答案解决了问题,请关闭该问题
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"