- android 8.0.0 API26
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); 异常 java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation
解决办法 theme修改
<item name="android:windowIsTranslucent">false</item>
转载于:https://my.oschina.net/cxy46957/blog/1796709