本文共 428 字,大约阅读时间需要 1 分钟。
在build.gradle最后添加,代码如下:
configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '24.1.1' } } }}