Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBilal Siddique
4,050 Pointsthe following class could not be found <android.support.constraint.ConstraintLayout
Hey I am having this difficulty in Build an Interactive Story
Where I am getting Wrong
<?xml version="1.0" encoding="utf-8"?>
<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"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bilal.interactivestory.MainActivity">
<ImageView
android:id="@+id/titleImageView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="14dp"
android:layout_marginStart="14dp"
android:layout_marginTop="24dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/main_title"/>
</android.support.constraint.ConstraintLayout>
Brandon Khan
21,619 PointsBrandon Khan
21,619 PointsIn your layout.xml file for main_activity, are you using a constraint layout or relative? in the Text tab at the bottom of the layout file it sould bring up the xml at the top if this page you should be able to tell if it is a constraint or not.