Can someone explain why String and Class annotation parameters are expected differently? Why does the compiler require literals for Classes, wherby accepting constants for Strin
maven {
url 'https://maven.google.com'
}
You must paste this in your project build.gradle(Project: MyApplication(Project Name))
implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
You must paste this in your project build.gradle(Module:app)
There might be a problem with dependency or just with their naming.
If you want a full code example go for the link:
https://www.captechconsulting.com/blogs/android-architecture-components-room-persistence-library