升级Android Studio 3.6.1后AndroidMa
2020-03-27 本文已影响0人
INode
报错
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>