報(bào)錯(cuò)
Activity標(biāo)簽下代碼:android:screenOrientation="portrait"
報(bào)錯(cuò):
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.
解決
解決參考地址:https://developer.android.com/topic/arc/window-management
<application>
···
<meta-data
android:name="WindowManagerPreference:FreeformWindowOrientation"
android:value="portrait" />
···
<activity
···
android:screenOrientation="nosensor">
···
</activity>
···
</application>