title: While using a nested LinerLayout not only I dont get to see my Views inside the 2nd child I also get this : "Element LinerLayout is not allowed here"
body: <p>I guess this is the simplest possible xml code for an activity and yet Android Studio  gives this ambiguity error while hovering on it, I would ignore that but the final result in the IDE's layout validation and a physical device is that all those child elements of the second LinerLayout are not appearing at all not even in the blue print view.</p>
  <p>I have tried solutions from similar posts and non worked for me:
  Restarted the IDE
  Restarted the System
  Cleaned the project
  I appreciate your help.</p>
  <pre><code>        &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
          &lt;!--1ok--&gt;
          &lt;LinearLayout
          xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
          xmlns:tools=&quot;http://schemas.android.com/tools&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
          android:orientation=&quot;vertical&quot;
          tools:context=&quot;.Profile_activity&quot;&gt;
            &lt;androidx.constraintlayout.widget.ConstraintLayout
             android:layout_width=&quot;match_parent&quot;
             android:layout_height=&quot;0dp&quot;
             android:layout_weight=&quot;1&quot;&gt;
            &lt;androidx.constraintlayout.widget.Barrier
             android:id=&quot;@+id/Barrier_horizontal&quot;
             android:layout_width=&quot;wrap_content&quot;
             android:layout_height=&quot;wrap_content&quot;
             app:barrierAllowsGoneWidgets=&quot;false&quot;
             app:barrierDirection=&quot;top&quot;/&gt;
             &lt;ImageView...&gt;    
             &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
             &lt;LinerLayout  
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;0dp&quot;
              android:layout_weight=&quot;3&quot;
              android:orientation=&quot;horizontal&quot;
              android:layout_marginTop=&quot;8dp&quot;&gt;
                 &lt;LinerLayout...&gt;&lt;!--other elements folded inside it like TextVeiw--&gt;
      &lt;!--Android message while hovering on it===&gt;&quot;Element LinerLayout is not allowed here&quot;--&gt;
                 &lt;LinerLayout...&gt;&lt;!--other elements folded inside it like TextVeiw--&gt;
      &lt;!--Android message while hovering on it===&gt;&quot;Element LinerLayout is not allowed here&quot;--&gt;
                  
          &lt;/LinerLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>