当前位置: 代码迷 >> 综合 >> AndroidStudio 报错 “No resource identifier found for attribute 'screenOrienation' in package 'android'
  详细解决方案

AndroidStudio 报错 “No resource identifier found for attribute 'screenOrienation' in package 'android'

热度:39   发布时间:2023-11-17 10:58:30.0

No resource identifier found for attribute 'screenOrienation' in package 'android'
大部分是自定义View的的xmls错误。

今天遇到的是配置清单的单词拼写错误,导致debug的配置清单一直报错

Message{kind=ERROR, text=No resource identifier found for attribute 'screenOrienation' in package 'android', sources=[/Users/yinzh/AndroidStudioProjects/yin_zsw/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:214], original message=, tool name=Optional.of(AAPT)}
 

 

配置清单:

<activityandroid:name=".live.activity.LiveSuggestActivity"android:screenOrienation="portrait"/>

 

  相关解决方案