我有一个错误android.util.AndroidRuntimeException:您不能将自定义标题与其他标题功能组合

我有一个错误android.util.AndroidRuntimeException:您不能将自定义标题与其他标题功能组合,android,Android,我的问题是,我的应用程序在安卓2.1上运行得很好,但当我尝试安卓4.4.2时,会出现这个错误 android.util.AndroidRuntimeException:您不能将自定义标题与其他标题功能组合使用。我正在使用ANDROID STUDIO 错误由主OnCreate给出: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (D) Log.e(T

我的问题是,我的应用程序在安卓2.1上运行得很好,但当我尝试安卓4.4.2时,会出现这个错误
android.util.AndroidRuntimeException:您不能将自定义标题与其他标题功能组合使用
。我正在使用ANDROID STUDIO

错误由主OnCreate给出:

public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    if (D) Log.e(TAG, "+++ ON CREATE +++");

    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
    setContentView(R.layout.activity_bluetooth);

    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);


    mTitle = (TextView) findViewById(R.id.title_left_text);
    mTitle.setText(R.string.app_name);
    mTitle = (TextView) findViewById(R.id.title_right_text);


    mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();


    if (mBluetoothAdapter == null) {
        Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show();
        finish();
        return;
    }
这就是错误:

            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
        at android.app.ActivityThread.access$800(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5017)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
        at dalvik.system.NativeStart.main(Native Method)
 Caused by: android.util.AndroidRuntimeException: You cannot combine custom titles with other title features
        at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:261)
        at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2830)
        at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3085)
        at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:286)
        at android.app.Activity.setContentView(Activity.java:1929)
        at com.grapeelectronic.control.Bluetooth.onCreate(Bluetooth.java:79)
        at android.app.Activity.performCreate(Activity.java:5231)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
        at android.app.ActivityThread.access$800(ActivityThread.java:135)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:136)
        at android.app.ActivityThread.main(ActivityThread.java:5017)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
        at dalvik.system.NativeStart.main(Native Method)

尝试替换
requestWindowFeature(Window.FEATURE\u CUSTOM\u TITLE)带有
requestWindowFeature(Window.FEATURE_NO_TITLE | Window.FEATURE_CUSTOM_TITLE)
并删除对
setFeatureInt

的调用。您可以发布style.xml和manifest.xml代码吗?