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 trial

Android Build an Interactive Story App Finishing the User Interface Creating the Story Layout

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Error messages when compiling Gradle

I've got a few annoying bugs in this project. I've gotten to the point where I'm adding the placeholder ImageView and TextView to the screen but when I try to run the app in the Emulator or sync with Gradle, I get these messages in Android Monitor.

Information:Gradle tasks [:app:assembleDebug]
C:\Users\Jonnie\AndroidStudioProjects\NewInteractiveStory\app\src\main\res\layout\activity_story.xml
Error:(10) No resource identifier found for attribute 'layout_constraintRight_toTopOf' in package 'uk.co.jonniegrieve.newinteractivestory'
C:\Users\Jonnie\AndroidStudioProjects\NewInteractiveStory\app\build\intermediates\res\merged\debug\layout\activity_story.xml
Error:(10) No resource identifier found for attribute 'layout_constraintRight_toTopOf' in package 'uk.co.jonniegrieve.newinteractivestory'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

Any ideas? These are still beyond me at this stage. I'm pretty sure I've got the views anchored correctly though.

Repo: https://github.com/jg-digital-media/android-interactive-storyapp

1 Answer

foxaice
foxaice
12,038 Points

try to remove app:layout_constraintRight_toTopOf="@+id/storyTextView" from android-interactive-storyapp\app\src\main\res\layout\activity_story.xml:21