Error loading Layouts in Android Studio

1

Good afternoon, I have a problem when loading the layouts in my Android project.

In the header of "activity_main.xml" I have the following:

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/lib/com.nameproject"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.nameproject.MainActivity">

And he shows me this error:

Error:(65) No resource identifier found for attribute 'lay' in package 'android'

Any recommendations?

    
asked by MR987 03.04.2017 в 00:54
source

1 answer

2

The error you describe:

  

Error: (65) No resource identifier found for attribute 'lay' in package   'android'

Indicates that Lay does not belong to any attributes on Android. You should check your layouts to see if you really have this property defined.

Also something important to correct, the namespace used is incorrect:

xmlns:app="http://schemas.android.com/apk/lib/com.nameproject

the correct one should be:

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

This is probably the cause.

    
answered by 03.04.2017 / 18:02
source