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!
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
Anas Ahmad432 Points
Hi there! The title of my Question is The Solution: Persisting Data.
I was trying to copy and paste the code from teachers notes but android studio is not accepting it properly and not syncing the given code. I tried to write the code word to word but its showing the same error. The code is as follows:
implementation 'android.arch.lifecycle:extensions:1.1.1' implementation 'android.arch.persistence.room:runtime:1.1.1-rc1' kapt 'android.arch.persistence.room:compiler:1.1.1-rc1' }
Lauren Moineau9,483 Points
Hi Anas. If you're still stuck:
Try changing the dependency version to 1.1.1 (stable version) for the last 2 dependencies
implementation 'android.arch.lifecycle:extensions:1.1.1' implementation 'android.arch.persistence.room:runtime:1.1.1' // here kapt 'android.arch.persistence.room:compiler:1.1.1' // and here
The stable version was released after that course was made.
Make sure you have
apply plugin: 'kotlin-kapt'
at the top of that same
Hope that helps :)