报错
Activity标签下代码:android:screenOrientation="portrait"
报错:
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>
网友评论