No resource found that matches the given name (at 'layout_alignTop' with value '@id/imageView3')

JimmyHo

This:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context=".MainActivity"
android:weightSum="1">

<ImageView
    android:id="@+id/imageView2"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_alignTop="@id/imageView3"
    android:layout_toLeftOf="@id/imageView3"
    android:layout_marginRight="30dp"/>



<ImageView
    android:id="@+id/imageView3"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_gravity="center_horizontal"
    android:layout_marginTop="30dp"
    android:layout_centerHorizontal="true"/>

<ImageView
    android:id="@+id/imageView4"
    android:layout_width="100dp"
    android:layout_height="100dp"
    android:layout_alignTop="@id/imageView3"
    android:layout_toRightOf="@id/imageView3"
    android:layout_marginLeft="30dp"/>

</RelativeLayout>

is my AndroidManifest.xml and I get the error:

Error:(77, 35) No resource found that matches the given name (at 'layout_alignTop' with value '@id/imageView3').

Error:(78, 35) No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/imageView3').

IntelliJ Amiya

You can use . Add + sign at first .

 android:layout_alignTop="@+id/imageView3"

After that, Clean-Rebuild-Restart Your IDE .

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

No resource found that matches the given name (at 'icon' with value ....)

No resource found that matches the given name

no resource found that matches the given name?

"No resource found that matches the given name"

Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme')

No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating')

Error: No resource found that matches the given name (at 'icon' with value '@mipmap/Icon')

No resource found that matches the given name (at 'id' with value '@android:id/kish')

Error:(86, 50) No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tvComment')

Problems with relative layout: No resource found that matches the given name

No resource found that matches the given name attr "colorPrimary"

No resource found that matches the given name with RadioGroup

No resource found that matches the given name: attr 'accentColor'

Android No resource found that matches given name Error

Error with ConstraintLayout: No resource found that matches the given name

No Resource found that matches the given name Xamarin Android

No resource found that matches the given name: attr 'colorPrimaryDark'

No resource found that matches the given name dialogCornerRadius

No resource found that matches the given name (@style/AppTheme)

No resource found that matches the given name button id

no resource found that matches the given name at title

No resource found that matches the given name at label

No resource found that matches the given name (at value with value @integer/google_play_services_version)” - Visual Studio 2015 Update 3

Error:No resource found that matches the given name (at 'resource' with value '@xml/provider_paths')

Error Building Project in Android Studio "Error: No resource found that matches the given name (at ____ with value '@drawable/<name>')

No Gradle - No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')

How to fix "No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')"

Error:(25, 28) No resource found that matches the given name (at 'theme' with value '@style/AppTheme.NoActionBar')