gpt4 book ai didi

android - 错误 :Build-in class shrinker and multidex are not supported yet

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:21:09 28 4
gpt4 key购买 nike

useProguard truemultidexEnabled true 添加到我的构建类型后,尝试构建时出现此错误:

Error:Build-in class shrinker and multidex are not supported yet.

compileSdkVersion 23
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "com.example.android
minSdkVersion 16
targetSdkVersion 23
versionCode gitVersionCode()
versionName gitVersionName()
multiDexEnabled true
}

buildTypes {
debug {
...
useProguard false
debuggable true
}
release {
...
useProguard true
}

运行 Android Studio 2.0 Beta 5。

除了删除 multidex 之外还有什么解决方案吗?

最佳答案

useProguard 变成了 minifyEnabled。尝试以下操作:

android {
buildTypes {
release {
minifyEnabled true
shrinkResources true
}
}
}

关于android - 错误 :Build-in class shrinker and multidex are not supported yet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35627985/

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