Boa noite Pessoal, estou na parte 4 aula 6 e estou utilizando a cardview, quando realizei essa atividade tive que colocar um constraint layout dentro do meu constraint layout porém ao fazer isso estou tomando o erro abaixo.
@+id/item_pacote_imgFotoCidade is not a sibling in the same ConstraintLayout Layout constraints in a given ConstraintLayout or RelativeLayout should reference other views within the same relative layout (but not itself!) Issue id: NotSibling
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools">
<android.support.v7.widget.CardView
android:id="@+id/item_pacote_cardView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_margin="8dp"
app:layout_constraintBottom_toTopOf="@+id/item_pacote_imgFotoCidade"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/item_pacote_imgFotoCidade"
android:layout_width="0dp"
android:layout_height="100dp"
android:scaleType="centerCrop"
android:src="@drawable/recife_pe"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.0" />
<TextView
android:id="@+id/item_pacote_txtValor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="R$ 249,99"
android:textColor="@android:color/holo_green_dark"
android:textSize="20sp"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="@id/item_pacote_txt2Dias"
app:layout_constraintTop_toBottomOf="@id/item_pacote_txt2Dias" />
<View
android:id="@+id/item_pacote_viewDivisor"
android:layout_width="0dp"
android:layout_height="3dp"
android:background="@android:color/holo_orange_dark"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_pacote_imgFotoCidade" />
<TextView
android:id="@+id/item_pacote_txtNomeCidade"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@android:drawable/screen_background_dark_transparent"
android:padding="8dp"
android:text="Recife"
android:textColor="@android:color/white"
android:textSize="14sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/item_pacote_imgFotoCidade"
app:layout_constraintEnd_toEndOf="@+id/item_pacote_imgFotoCidade"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="@+id/item_pacote_imgFotoCidade"
app:layout_constraintTop_toTopOf="@+id/item_pacote_imgFotoCidade"
app:layout_constraintVertical_bias="1.0" />
<TextView
android:id="@+id/item_pacote_txt2Dias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="2 Dias"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/item_pacote_viewDivisor" />
</android.support.constraint.ConstraintLayout>
</android.support.v7.widget.CardView>
</android.support.constraint.ConstraintLayout>