【发布时间】:2018-09-06 04:34:53
【问题描述】:
我的 Android 工作室有问题。有时它可以工作,但当它不起作用时,通常会出现此错误:
我应该怎么做才能解决这个问题?
这是我的代码:
<?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="com.wordpress.schoolworkhelpsite.swhsapp.MainActivity">
<image>ic.launcher.png</image>
<TextView
android:layout_width="wrap_content"
android:layout_height="23dp"
android:text="SchoolWork HelpSite"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
<xml>
如果我的代码有误,我需要更改什么?
【问题讨论】:
-
显示错误,我们不会读心术
-
您的 xml 文件有错误并且未格式化,请使其正确,这样可以解决错误。
-
尝试复制整个错误日志并发布它,而不是图像
标签: xml android-studio android-gradle-plugin