Android manifest attribute not allowed here

后端 未结 11 1926
自闭症患者
自闭症患者 2021-02-18 13:28

I have several manifest errors regarding some attributes . I have not made any changes to the manifest the application generated automatically yet i get several errors. *( I\'m

11条回答
  •  滥情空心
    2021-02-18 14:09

    For your "attribute not allowed here" problem, versionCode, versionName and allowBackup have to be placed in the build.gradle file and not in the Android Manifest. That should solve the problem.

    Secondly, for your "@style/AppTheme no resource matches the given name" problem, you will have to check your styles.xml file and make sure that a style with the name AppTheme exists over there.

    Hope this helps you or anyone who views this answer.

提交回复
热议问题