안드로이드/Q&A
[안드로이드 Q&A] 오류 해결방법 (In AndroidManifest: Expecting android:screenOrientation=“portrait”)
Jacob.park
2020. 5. 7. 17:07
최근 안드로이드 스튜디오 3.6.1로 업데이트를 했다.
이때 내가 진행하고 있던 앱 프로젝트는 세로모드 고정이었는데
android:screenOrientation="portrait"에서 빨간 줄이 띄어졌다.
나는 서둘러 구글링을 했고, 해결방법 2가지를 찾았다.
[첫번째 방법]
Android Studio -> Preferences (or settings in Windows)
-> search "chrome"
-> Uncheck "Activity is locked to an orientation"
-> apply and ok
-> Sync Project with Gradle flie
[두번째 방법]
Select "Run" from the main menu
-> Edit Configurations.
-> Launch options - Launch
-> select Nothing or Specified Activity
-> Sync Project with Gradle file