安卓开发新手求助

ShawnHou1996 2018-04-24 10:29:32
新手准备从事安卓开发,装好了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" />

在网上目前查到的方法都还没有解决我的问题
特来求助各位前辈
不胜感激!
...全文
716 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
开发者_android 2018-04-24
  • 打赏
  • 举报
回复
没有设置SDK。
开发者_android 2018-04-24
  • 打赏
  • 举报
回复

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧