android - 在 Android 中编译库时 TabLayout 崩溃

标签 android android-studio gradle android-gradle-plugin android-tablayout

我正在尝试使用图像编辑库,编译后,我在使用任何 TabLayout 的 Activity 中遇到错误。这是库错误还是我?我以前从未见过这个。

错误日志如下:

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/internal/widget/TintManager;
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.internal.widget.TintManager" on path: DexPathList[[zip file "/data/app/com.runator-1/base.apk"]

这是图像编辑库:https://github.com/Yalantis/uCrop

如果有任何想法请帮助我,在此先感谢。

最佳答案

我们的 UCrop 库不使用 TintManager

尝试添加: 编译 'com.android.support:design:23.1.1' 或者 com.android.support:support-v4:23.1.0

确保你使用的是最新版本

更多信息在这里 - https://stackoverflow.com/a/34081829/2769065

谢谢

关于android - 在 Android 中编译库时 TabLayout 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35990810/

相关文章:

android - 在纯 Kotlin 中 2 秒后执行代码

android - 修复 ""com.google"is restricted""错误的重构/重命名步骤

Android studio 导入 gradle 问题

android - '错误 : Failed to resolve: com. android.support :appcompat-v7:29. 0.1'

android - Eclipse 中的 Joda 时间 : NoClassDefFoundError

android - 在 Dreamweaver CS5.5 中构建和模拟 Android 应用程序

android - TextView 的设置停止其他 TextView 的选取框滚动

android - 如何在 Android studio 中使用 appengineEndpointsGet ClientLibs 的输出?

intellij-idea - 使用kotlin-to-js转译器时获得热插拔功能的最简单方法是?

gradle - 使用Gradle 5.X在Azure DevOps上生成代码覆盖率报告