m0_63212632 2022-03-10 19:22 采纳率: 0%
浏览 3053

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版本的问题,我试了一下午都改不过来,希望有能人指点一二,非常感谢!

我想要达到的结果
  • 写回答

3条回答 默认 最新

  • weixin_42120514 2022-03-11 10:04
    关注

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

    评论

报告相同问题?

问题事件

  • 请回答用户的提问 10月9日
  • 创建了问题 3月10日