Expecting `android:screenOrientation="unspecified"` or `"fullSensor"

Viewed 2878

i updated android studio to 3.6 and updated gradle as well and having this error below

See Image Here

LOG PRINT

Error:(117, 13) Expecting android:screenOrientation="unspecified" or "fullSensor" for this activity so the user can use the application in any orientation and provide a great experience on Chrome OS devices.

i have found this solution but did't help me and this is answered 7 years ago for api level 9 and i am using API level 28

2 Answers

You can disable the check, here's how :

  1. Go to Settings -> Inspection
  2. Find "Chrome OS" (you can use the search bar on top left)
  3. Disable everything (see image below)
  4. Done

Disable Chrome OS Checking

Easily add following lines to <manifest> tag of your AndroidManifest.xml

xmlns:tools="http://schemas.android.com/tools"
tools:ignore="LockedOrientationActivity"
Related