Android dagger api 21兼容性

时间:2017-04-30 14:43:19

标签: android compatibility dagger-2

我在api版本25上用dagger库开发了应用程序。但是现在我在21 api版本上尝试了应用程序并且它没有工作。它是由匕首造成的。

这是错误日志:

java.lang.NoClassDefFoundError: Failed resolution of: Ldagger/internal/Preconditions;

 Caused by: java.lang.ClassNotFoundException: Didn't find class "dagger.internal.Preconditions" on path: DexPathList[[zip file "/data/app/package-2/base.apk"],nativeLibraryDirectories=[/data/app/package-2/lib/x86, /vendor/lib, /system/lib]]

我的匕首版本:2.11-rc1。

问题出在哪里?

由于

1 个答案:

答案 0 :(得分:0)

由更新构建工具版本

解决