Android Studio 编译: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 - chuwuwang/ReadingNote GitHub Wiki

AndroidManifest文件编译警告或者报错⚠

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.

修改Android Studio配置

Mac:Android Studio -> Preferences

Windows:File -> Settings

Then:

Search for "chrome"

Uncheck "Activity is locked to an orientation"

Apply and ok.

or

tools:ignore="LockedOrientationActivity"