I'v published an application in Play Store. It was regular but in last few month, there are many AndroidRuntimeException in Firebase's Crashlytics. Here are the error stacks:
Caused by android.util.AndroidRuntimeException: Window feature must be requested before adding content
at androidx.appcompat.app.AppCompatDelegateImpl.throwFeatureRequestIfSubDecorInstalled(AppCompatDelegateImpl.java:2309)
at androidx.appcompat.app.AppCompatDelegateImpl.requestWindowFeature(AppCompatDelegateImpl.java:1089)
at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:848)
at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:806)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:693)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:170)
at ****.BaseActivity.onCreate(BaseActivity.java:78)
I'v tried different versions of appcompat library, such as 1.1.0-rc01
、1.1.0
、1.2.0
、1.3.0
, but it not works. It seams ok in the source code of AppCompatDelageImpl.java
.
Can anyone can help me to solve this problem. Thanks a lot.