title: No resource found that matches the given name (at 'layout_toRightOf' with value '@id/right_item_menu_fragment')
body: <p>I am trying to configure three fragments: one with the fixed width on the left, one with the fixed width on the right, and one in the middle that would take all remaining space. I searched for a solution, and followed suggestions that I found online, however when I try to run the app, I am getting an error:</p>
  
  <p><strong>No resource found that matches the given name (at 'layout_toRightOf' with value '@id/right_item_menu_fragment').</strong></p>
  
  <p>If I move the RelativeLayout id='canvas_fragment' after layout id='right_item_menu_fragment', then the installation is successful (no above-mentioned error), but the 'canvas_fragment' is not visible on the screen.</p>
  
  <p>I searched for this error, and there are different reasons why it can be happen, but none of them applies to my situation. Many people have this error when using Eclipse, but I am using Android studio.</p>
  
  <p>If someone can point out what I am doing wrong, help will be much appreciated.</p>
  
  <p>Here is my layout:</p>
  
  <pre><code>&lt;RelativeLayout 
  xmlns:android="http://schemas.android.com/apk/res/android"     
  android:id="@+id/canvas_layout"      
  android:layout_width="match_parent"       
  android:layout_height="match_parent"&gt;             
  
  &lt;RelativeLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"       
      android:id="@+id/left_item_menu_fragment"      
       android:layout_width="@dimen/item_menu_width"     
       android:layout_height="match_parent"      
       android:layout_alignParentLeft = "true"     
      android:background="#cccccc"&gt;           
  
   &lt;/RelativeLayout&gt;          
  
   &lt;RelativeLayout 
          xmlns:android="http://schemas.android.com/apk/res/android"      
          android:id="@+id/canvas_fragment"      
          android:orientation="vertical"      
          android:layout_height="match_parent"     
          android:layout_width="match_parent"
               android:layout_toLeftOf = "@+id/left_item_menu_fragment"       
          android:layout_toRightOf = "@id/right_item_menu_fragment"      
          android:background="#000000" &gt;            
  
  &lt;/RelativeLayout&gt;                
  
  &lt;RelativeLayout 
         xmlns:android="http://schemas.android.com/apk/res/android"       
         android:id="@+id/right_item_menu_fragment"       
         android:layout_width="@dimen/item_menu_width"      
          android:layout_height="match_parent"     
           android:layout_alignParentRight = "true"      
          android:background="#cccccc"&gt;          
  
  &lt;/RelativeLayout&gt;
                           &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p> </p>