Android studio 一开始就被困在Android Studio中。空白设计屏幕。没有你好世界

Android studio 一开始就被困在Android Studio中。空白设计屏幕。没有你好世界,android-studio,Android Studio,你好,我是一个初学者,当我启动Studio时,我会看到一个空白的设计屏幕,而不是HelloWorld。无论我添加了多少文本视图或按钮,都会显示空白的设计屏幕。请帮忙 启动时的默认代码: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" x

你好,我是一个初学者,当我启动Studio时,我会看到一个空白的设计屏幕,而不是HelloWorld。无论我添加了多少文本视图或按钮,都会显示空白的设计屏幕。请帮忙

启动时的默认代码:

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>

可能是因为您创建了更多的活动,并且这些活动显示在它之前。在您的Android清单中,在声明活动的部分,您应该将您的活动指定为主活动和启动器。像这样:

        <activity
        android:name=".MainActivity"
        android:label="@string/MainActivity"
        android:screenOrientation="portrait">
        .
        .
        .
        <!-- intent filter makes this activity the initial -->
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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

.
.
.

谢谢,我试着换了,但运气不好。我卸载了Studio程序,删除了所有文件,然后从头开始(两次)。当一个新项目开始加载时,我每次都会得到一个空白的蓝图,甚至在我做任何更改之前。。在设计视图中并没有应用程序的名称,也并没有如示例中所示的彩色应用程序栏。啊!感谢您的输入,现在我了解了更多关于清单的信息(lol!)嗯,也许在Android Studio->构建->清理项目和重建选项中,除此之外,在删除所有文件(它们位于多个文件夹中)时重新安装。我想不出更多了