Android Studio 中的 Androidmainfest.xml文件大面积报红,卡了一下午!

问题遇到的现象和发生背景

各位会Android studio的博主们,不好意思叨扰一下:
是这样的我打开我同学的项目,他电脑跑的完全没问题,为啥子一到我这androidmainfest 文件和mainactivity文件就大面积报红,无法运行

img


问题相关代码,请勿粘贴截图

android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication">

运行结果及报错内容

Attribute android:allowBackup is not allowed here
Attribute android:icon is not allowed here
Attribute android:roundIcon is not allowed here
Attribute android:supportsRtl is not allowed here

我的解答思路和尝试过的方法

是不是SDK版本的问题,我试了一下午都改不过来,希望有能人指点一二,非常感谢!

我想要达到的结果

sync同步或者build构建没有通过,看下build的日志,光看页面报红解决不了问题的

可能是依赖有问题,可以参考下这篇文章,希望对你有帮助:

你的gradle同步成功了吗?
这些报红像是grald没同步成功导致的