AriesHoo / FastLib

一个Android项目级快速开发框架,节约大部分写常用功能时间以实现更多项目业务功能及体验上的优化。使用说明见wiki
https://github.com/AriesHoo/FastLib/wiki
Apache License 2.0
492 stars 95 forks source link

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dmool.anime/com.kuaikan.comic.reader.ui.ComicDetailActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content #78

Closed lidynast closed 3 years ago

lidynast commented 3 years ago

image 上面这句代码会导,下图写法的activity崩溃 image 下面错误日志 image

lidynast commented 3 years ago

准确的说是后面那个代码:FastUtil.getRootView(activity)

AriesHoo commented 3 years ago

从你的错误日志来看没看出是指向FastLib的某个类的问题,你是如何确定的? 从你错误日志来看是你requestWindowFeature的调用时机的问题? 你再确认下

lidynast commented 3 years ago

问题我已经解决了,我把Fastlib用module引入方式,然后去掉那句日志打印就可以了 requestWindowFeature这个句代码是我接入一个SDK里面的Activity中使用的,没办法去修改

AriesHoo commented 3 years ago

解决了就好发自我的华为手机-------- 原始邮件 --------发件人: lidynast @.>日期: 2021年3月24日周三 17:48收件人: AriesHoo/FastLib @.>抄送: Aries Hoo²⁰²¹ @.>, State change @.>主 题: Re: [AriesHoo/FastLib] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.dmool.anime/com.kuaikan.comic.reader.ui.ComicDetailActivity}: android.util.AndroidRuntimeException: requestFeature() must be called before adding content (#78)

问题我已经解决了,我把Fastlib用module引入方式,然后去掉那句日志打印就可以了

requestWindowFeature这个句代码是我接入一个SDK里面的Activity中使用的,没办法去修改

—You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub, or unsubscribe.