【发布时间】:2019-03-09 10:10:51
【问题描述】:
我将我的 android studio 更新到版本 3.3 canary 13(截至撰写本文时的最新版本)。系统提示我更新项目的 gradle 版本,我将其更新为版本 3.3.0-alpha13
classpath 'com.android.tools.build:gradle:3.3.0-alpha13'
现在当我尝试运行我的项目时,它失败并出现错误
Error: Class descriptor 'Landroid/support/customtabs/ICustomTabsCallback/;' cannot be represented in dex format.
我试图使缓存无效,清理并重建项目,但没有任何效果。下面是我应用的 build.gradle
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha3', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
}
【问题讨论】:
-
请仔细检查
androidximport 。这可能是导致问题的原因 -
@TejasPandya 我设法解决了这个问题。见下方答案
标签: android android-studio android-gradle-plugin build.gradle