安卓极光分享Only fullscreen opaque activities can request orientation

安卓8.0系统极光分享报错Only fullscreen opaque activities can request orientation

解决方法:
https://community.jiguang.cn/t/topic/27662/17
这个问题是8.0系统的一个的bug,如果是Gradle集成你试试manifest这样配置看看
在app的AndroidManifest.xml里面配置

<activity
        android:name="cn.jiguang.share.android.ui.JiguangShellActivity"
        android:exported="true"
        android:launchMode="singleTask"
        android:theme="@android:style/Theme.Translucent.NoTitleBar"
        android:windowSoftInputMode="stateHidden|adjustResize"
        tools:node="replace">
        <!-- Optional QQ分享回调-->
        <!-- scheme为“tencent”前缀再加上QQ开发者应用的appID;例如appID为123456,则scheme=“tencent123456” -->
        <intent-filter>
            <data android:scheme="tencent1106011004" />
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>

        <!-- Optional 新浪微博分享回调 -->
        <intent-filter>
            <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>

        <!-- Optional 新浪微博私信回调-->
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="jsharesdk" android:host="sinaweibo"/>
        </intent-filter>
    </activity>
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容