前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >targetSdkVersion 更新到 28,出现的问题

targetSdkVersion 更新到 28,出现的问题

作者头像
Jingbin
发布2019-05-08 10:10:56
2.7K0
发布2019-05-08 10:10:56
举报
文章被收录于专栏:Android 技术栈Android 技术栈

原来的是 targetSdkVersion = 25,因vivo应用市场提醒需要升级到 28,可能出现一系列问题,现记录如下:

1.微信登录异常错误

Only fullscreen opaque activities can request orientation 点击微信登录,确定授权后提示“应用程度崩溃”,后台报错如上。

stackoverflow解决方法:# java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation

代码语言:javascript
复制
The problem seems to be happening when your target sdk is 28.
So after trying out many options finally this worked.

 <activity
        android:name=".activities.FilterActivity"
        android:theme="@style/Transparent"
        android:windowSoftInputMode="stateHidden|adjustResize" />
style:-

<style name="Transparent" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:backgroundDimEnabled">false</item>
    </style>
Note:parent="Theme.AppCompat.Light.NoActionBar" is needed for api 28. 
Previously had something else at api 26. Was working great but started to give problem at 28. 
Hope it helps someone out here.
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.04.23 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.微信登录异常错误
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档