我无法将默认 android 主题更改为此 Android Studio 显示 "cannot resolve symbol" 错误

I am unable to change default android theme to this Android Studio is showing "cannot resolve symbol" error

这是我想在我的应用程序中使用 "android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" 的主题,但由于某些原因它一直让我的 app.Can 有人指出错误吗?我也更改了 values 文件夹中的主题,但没有用。 minSdkVersion 17 targetSdkVersion 21

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="crystalball.com.example.android.crystlalball" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

这是logcat:

08-30 15:10:48.220    1969-1969/crystalball.com.example.android.crystlalball I/art﹕ Not late-enabling -Xcheck:jni (already on)
08-30 15:10:48.368    1969-1969/crystalball.com.example.android.crystlalball D/AndroidRuntime﹕ Shutting down VM
    --------- beginning of crash
08-30 15:10:48.368    1969-1969/crystalball.com.example.android.crystlalball E/AndroidRuntime﹕ FATAL EXCEPTION: main
    Process: crystalball.com.example.android.crystlalball, PID: 1969
    java.lang.RuntimeException: Unable to start activity ComponentInfo{crystalball.com.example.android.crystlalball/crystalball.com.example.android.crystlalball.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
            at android.app.ActivityThread.access0(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
     Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
            at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:152)
            at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:149)
            at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123)
            at crystalball.com.example.android.crystlalball.MainActivity.onCreate(MainActivity.java:17)
            at android.app.Activity.performCreate(Activity.java:5933)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
            at android.app.ActivityThread.access0(ActivityThread.java:144)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:135)
            at android.app.ActivityThread.main(ActivityThread.java:5221)
            at java.lang.reflect.Method.invoke(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:372)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
device not found
字符串末尾的

Space 导致了问题。请删除全屏后的space。