gpt4 book ai didi

android - : android.引起的util.AndroidRuntimeException: requestFeature() must be called before adding content android异常

转载 作者:搜寻专家 更新时间:2023-11-01 08:01:32 25 4
gpt4 key购买 nike

<分区>

我知道这个问题已经在堆栈上被问过了,但我尝试了所有的解决方案但没有用。我仍然在下面得到相同的错误

Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content

下面是代码-

    @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
**requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);**
setContentView(R.layout.info);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.window_title);
}

我尝试了很多链接,如下所示- https://stackoverflow.com/search?q=requestFeature%28%29+must+be+called+before+adding+content

有什么解决办法吗???

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com