Android

[AndroidStudio 3.6.1][해결완료]Expecting ‘android:screenOrientation=’unspecified’ or ‘fullSensor’ for this activity 오류처리(Activity is locked to an orientation)

안드로이드 스튜디오를 3.6.1로 버전 업데이트 후 AndoridManifest.xml 파일 정보에 화면 회전 관련하여 빨간줄이 생겨났다.

빨간줄은 싫다. 언제부터인가 거부감이 생겼다. 개발자라서 그런가??




기존에 설정된 portrait를 “fullSensor”로 변경하거나 “unspecified”로 변경하면 빨간줄은 없어진다. 하지만 그것을 원하지않는다.

[해결방법]
화면상단 메뉴에서 File를 선택 후 Settings를 클릭하면 Settings팝업창이 나타난다.


Editor메뉴를 클릭 후 Inspections메뉴를 클릭 후 Lint를 클릭한다.


Activity is locked to an orientation 2개를 모두 체크 해제한다.


빨간줄은 사라졌다.!!

Leave a Reply

error: Content is protected !!