android - Hello World 启动时出现黑屏
问题描述
我开始与 android studio 合作,并正在关注一本制作 hello world 应用程序的书。一旦我完成第一次声明项目并运行 gradle 它应该在顶部有一个带有 hello world 的标题,如下所示
但相反我得到
这个
我没有触及任何代码。但这里是 activity_quiz.xml
<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=".QuizActivity">
<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>
有什么帮助吗?
解决方案
推荐阅读
- python - 如何修复 Altair 图表中的 timeUnit 错误
- reactjs - Create-React-App 意外连接被拒绝
- python - 在 http.client 或 python-requests 中获取 http 原始(未解析)响应
- excel - 计算每个类别的 "ok" 更新数,但如果值更改为 "rej" 或 "blank",则停止计算
- c++ - 提升图复制filtered_graph
- c# - 我们可以在不使用编码的情况下将 Url 表单视图末尾的右括号“)”传递给控制器吗
- android - android-数据绑定-数据绑定后添加文本
- pandas - 尝试使用日期轴不同方法对组进行子图
- firebase - 如何在颤振应用程序中使用计时器来更改数据?
- android - Firebase:任何方式来定义一个“任何”节点?