Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/442.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Hello world和指南没有出现在Android studio的blueprint中_Javascript_Android_Android Studio 3.0_Blueprint - Fatal编程技术网

Javascript Hello world和指南没有出现在Android studio的blueprint中

Javascript Hello world和指南没有出现在Android studio的blueprint中,javascript,android,android-studio-3.0,blueprint,Javascript,Android,Android Studio 3.0,Blueprint,我正试图按照本教程()构建一个基本的应用程序。我很确定我已经正确地遵循了所有的方向,但是在获得了构建简单用户界面的图3之后,我的蓝图只是一个纯蓝色矩形,看起来不像教程中的图3 代码如下: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"

我正试图按照本教程()构建一个基本的应用程序。我很确定我已经正确地遵循了所有的方向,但是在获得了构建简单用户界面的图3之后,我的蓝图只是一个纯蓝色矩形,看起来不像教程中的图3

代码如下:

<?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>

当我四处寻找这个问题的更好答案时,我抛出了这个S.O.解决方案:它对我有效


不幸的是,预先构建的“Hello World”示例并不适合您,这可能会令人沮丧

向我们展示您的代码和布局标记。我添加了代码,但我不熟悉布局标记这个术语。我感谢您的帮助,如果这解决了我的问题,我一定会告诉您。