问题描述
/Users/jerry/projects/app-db/build/tmp/kapt3/stubs/debug/com/cxyzy/note/db/AppDatabase.java:7: 错误: [RoomProcessor:MiscError] androidx.room.RoomProcessor was unable to process this class because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
public abstract class AppDatabase extends androidx.room.RoomDatabase {
^
解决方案
这个问题也许不具有普遍性,但是出错信息较为模糊,非常具有迷惑性,从报错信息看不出问题出在哪里.所以还是总结一下.
最终问题原因是AppDatabase里引用的Bean路径不对导致的.
安卓开发技术分享: https://www.jianshu.com/p/442339952f26
点击关注专辑,查看最新技术分享
更多技术总结好文,请关注:「程序园中猿」
网友评论