新手准备从事安卓开发,装好了Android Studio后碰到了以下问题:
打开Studio ,activity_main文件中:
<?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" 这里提示“URI is not registered”
xmlns:tools="http://
schemas.android.com/tools" 这里提示“URI is not registered”
android:layout_width="match_parent" 这里提示“attribute android:layout_width is not allowed here”
android:layout_height="match_parent" 这里提示“attribute android:layout_height is not allowed here”
tools:context="com.example.firsttest.MainActivity"> 这里提示“attribute tools:context is not allowed here”
<
TextView 这里提示“Element TextView is not allowed here”
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" />
在网上目前查到的方法都还没有解决我的问题
特来求助各位前辈
不胜感激!