title: Constraint Layout - Group visibility is not working inside dynamic module
body: <p>Has anyone experienced issues with <code>ConstraintLayout</code> group visibility?
  I'm using <code>ConstraintLayout</code> 1.1.3 and I'm setting the visibility of group in both <code>XML</code> layout and java code. But it does not change the visibility status. It is always visible. </p>
  
  <p><strong>This is the layout file</strong></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;android.support.constraint.ConstraintLayout  
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"&gt;
  
  &lt;ImageView
      android:id="@+id/iv_message_icon_activity_dictionary"
      android:layout_width="@dimen/message_icon_width"
      android:layout_height="@dimen/message_icon_height"
      android:layout_marginBottom="@dimen/message_text_view_margin_top"
      android:contentDescription="@string/app_name"
      android:src="@drawable/icon_error"
      app:layout_constraintBottom_toTopOf="@+id/tv_message_activity_dictionary"
      app:layout_constraintEnd_toEndOf="@id/tv_message_activity_dictionary"
      app:layout_constraintStart_toStartOf="@id/tv_message_activity_dictionary" /&gt;
  
  &lt;TextView
      android:id="@+id/tv_message_activity_dictionary"
      android:layout_width="0dp"
      android:layout_height="wrap_content"
      android:layout_marginEnd="20dp"
      android:layout_marginLeft="20dp"
      android:layout_marginRight="20dp"
      android:layout_marginStart="20dp"
      android:gravity="center"
      android:textColor="@color/black"
      android:textSize="@dimen/medium_text_size"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      tools:text="@string/msg_no_internet" /&gt;
  
  &lt;Button
      android:id="@+id/btn_try_again_activity_dictionary"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/try_again_button_margin_top"
      android:background="@drawable/rounded_button"
      android:minHeight="30dp"
      android:minWidth="@dimen/try_again_button_width"
      android:padding="10dp"
      android:text="@string/btn_try_again"
      android:textAllCaps="false"
      android:textColor="@color/white"
      android:textSize="@dimen/text_size_5"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@id/tv_message_activity_dictionary" /&gt;
  
  &lt;android.support.constraint.Group
      android:id="@+id/group_component_activity_dictionary"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:visibility="gone"
      app:constraint_referenced_ids="btn_try_again_activity_dictionary,tv_message_activity_dictionary,iv_message_icon_activity_dictionary" /&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>What could be the reason for this?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p><strong>I forgot to mention that I'm using this layout inside of a dynamic module. Also I tested this using in the base module and it is working as expected, but not in a dynamic module. So finally I figured out the reason for the issue. Also when I debugged the code and evaluated this expression (group.getVisibility == View.GONE), it gave me TRUE.(even though the views inside the group are still visible)</strong></p>
  
  <p>Any suggestion is appreciated.</p>