Obsolete
Status Update
Comments
yb...@google.com <yb...@google.com> #2
can you please provide a sample project?
Look like you are not running the annotation processor on the module which would cause this issue. In whichever project the AppDatabase exists, you should add the annotation processor as a dependency so that it can generate AppDatabase_Impl.
Look like you are not running the annotation processor on the module which would cause this issue. In whichever project the AppDatabase exists, you should add the annotation processor as a dependency so that it can generate AppDatabase_Impl.
su...@gmail.com <su...@gmail.com> #3
Thanks for Help.
I added the annotation processor as a dependency in project in which the AppDatabase exists and it works.
I added the annotation processor as a dependency in project in which the AppDatabase exists and it works.
yb...@google.com <yb...@google.com>
ga...@gmail.com <ga...@gmail.com> #4
Why is this marked as 'won't fix'? The app should pick up the library's dependencies.
yb...@google.com <yb...@google.com> #5
nope. Annotation processors are not carried from library to the project since the library is compiled by itself and all necessary code is generated for the library when it is compiled.
Description
Version used: android.arch.persistence.room:runtime:1.0.0-alpha9-1
Devices/Android versions reproduced on: Android 5.1.1 (Lollipop)
- Sample project to trigger the issue.
If we add dependencies for room database in library project then unable to compile code.
It give "java.lang.RuntimeException: cannot find implementation for .database.AppDatabase. AppDatabase_Impl does not exist"
I need to declare dependencies in my common library which I used for my other Applications.