Android сбой привязки ресурса - C: \ Users \ sanal \ AndroidStudioProjects \ MyApplication22 \ app \ src \ main \ res \ layout \ activity_main. xml: 2: AAPT: ошибка - PullRequest
0 голосов
/ 02 апреля 2020

Сообщение об ошибке:

C: \ Users \ sanal \ AndroidStudioProjects \ MyApplication22 \ app \ src \ main \ res \ layout \ activity_main. xml: 2:
AAPT : ошибка: атрибут android (он же com.sanal.myapplication2: android) не найден.

Activity_main. xml

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout xmnls:android="http://Schemas.android.com/apk/res/android"

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

    android:id="@+id/activity_main"

android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:paddingBottom="16dp"

    android:paddingLeft="16dp"

    android:paddingRight='16dp'

    android:paddingTop="16dp"

    tools:context="com.sanal.myapplication2.MainActivity"

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

    xmlns:xmnls="http://schemas.android.com/apk/res-auto" >

    <Button

        android:id="@+id/btclick"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

       android:layout_centerInParent="true"

        android:background="#FFFFFF"

        tools:text="CLICK ME" />

    </RelativeLayout>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...