【发布时间】:2016-07-08 10:33:01
【问题描述】:
我遇到了一个奇怪的问题
致命异常:java.lang.NoClassDefFoundError android.support.v7.view.menu.MenuBuilder
主要在4.2.2 和4.4.2 设备上。当我开始在我的应用程序代码中使用 supportv7 库以利用材料设计工具栏时,它发生了。
这是我的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 修复,但也运气不好。请帮忙
【问题讨论】:
标签: android material-design android-support-library android-toolbar