RoboGuice 3.0的NoClassDefFoundError:AnnotationDatabaseImpl [英] RoboGuice 3.0 NoClassDefFoundError: AnnotationDatabaseImpl
本文介绍了RoboGuice 3.0的NoClassDefFoundError:AnnotationDatabaseImpl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有关某些原因RoboBlender不产生注解数据库。
我的build.gradle具有以下依存关系:
{相关性
提供'org.roboguice:roboblender:3.0
编译文件树(导演:'库',包括:['的* .jar'])
编译org.roboguice:roboguice:3.0
}
解决方案
这不是最终的解决方案,但它可以帮助你。我不知道为什么,但RoboGuice 3.0和3.0.1引发此异常。你要做的是禁用注解数据库中的 MainActivity
如下:
静态{
RoboGuice.setUseAnnotationDatabases(假);
}
我希望这有助于
For some reason the RoboBlender does not generate the annotation database. My build.gradle has the following dependencies:
dependencies {
provided 'org.roboguice:roboblender:3.0'
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'org.roboguice:roboguice:3.0'
}
解决方案
This is not a final solution, but it can help you. I don't know why, but RoboGuice 3.0 and 3.0.1 throws this exception. What you have to do is disable annotations for databases in your MainActivity
as follows:
static {
RoboGuice.setUseAnnotationDatabases(false);
}
I hope this help
这篇关于RoboGuice 3.0的NoClassDefFoundError:AnnotationDatabaseImpl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文