我收到一个窗口找不到内容容器视图。此错误询问应用程序何时检查权限
我注意到,对于磨损应用程序,我复制磨损apk到原始文件夹。它有大约2.5 Mb。在添加了这个我得到这个崩溃
java.lang.RuntimeException: Window couldn't find content container view
at com.android.internal.policy.PhoneWindow.generateLayout(PhoneWindow.java:4614)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:4683)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2263)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4276)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3361)
at android.app.ActivityThread.access$1100(ActivityThread.java:222)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
2条答案
按热度按时间cbeh67ev1#
在我的案例中,Comscore图书馆导致了这个问题。试着把它去掉。
guykilcj2#
您可以尝试此链接https://issuetracker.google.com/issues/37095334在调用super.onCreate()之前添加对getWindow().getDecorView()的调用