gpt4 book ai didi

android - java.lang.NoClassDefFoundError android.support.v7.view.menu.MenuBuilder

转载 作者:行者123 更新时间:2023-11-29 19:43:15 25 4
gpt4 key购买 nike

我遇到了一个奇怪的问题

Fatal Exception: java.lang.NoClassDefFoundError android.support.v7.view.menu.MenuBuilder

主要在 4.2.24.4.2 设备上。当我开始在我的应用程序代码中使用 supportv7 库以利用 Material 设计工具栏时,它就发生了。

这是我的 build.gradle 依赖项:

    dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile files('libs/sinch-android-verification-1.0.4.jar')
compile project(':library')
compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
transitive = true;
}

compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.mixpanel.android:mixpanel-android:4.6.0'
compile 'uk.co.chrisjenx:calligraphy:2.0.2'
compile 'it.sephiroth.android.library.horizontallistview:hlistview:1.2.2'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'io.branch.sdk.android:library:1.8.8'
compile 'com.android.support:support-v4:23.3.0'
compile 'com.squareup.okhttp3:okhttp:3.3.1'
compile 'com.android.support:design:23.3.0'
compile 'com.github.freshdesk:hotline-android:1.0.+'
//compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.google.android.gms:play-services-appindexing:8.4.0'
}

谁能帮忙。自从 2 天后我就被困在同一个地方。我已经检查了各种 proguard 修复程序,但也很不走运。请帮忙

最佳答案

在 Google 讨论中查看此问题。

作为#150 from google groups

Because careful with -keep class !android.support.v7.internal.view.menu.**. There are a number of classes in there which are referenced from the appcompat's resources.

更好的解决方案是添加以下行:

-keep class !android.support.v7.internal.view.menu.*MenuBuilder*, android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }

关于android - java.lang.NoClassDefFoundError android.support.v7.view.menu.MenuBuilder,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38264510/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com