xml Error

error: unbound prefix. Message{kind=ERROR, text=error: unbound prefix., sources=[D:\MyApplication\app\src\main\res\layout\activity_main2.xml:21], original message=, tool name=Optional.of(AAPT)}
命名空间问题
根据代码添加

xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
......

等等等等

你可能感兴趣的:(xml Error)