目录
编译失败:defaultConfig contains custom BuildConfig fields, but the feature is disabled.
编译失败:defaultConfig contains custom BuildConfig fields, but the feature is disabled.
解决方案:
gradle.properties 添加配置
android.defaults.buildfeatures.buildconfig=true |
编译失败:DSL element 'dexOptions' is obsolete and should be removed.
It will be removed in version 8.0 of the Android Gradle plugin.
Using it has no effect, and the AndroidGradle plugin optimizes dexing automatically.
解决方案:
如下配置移除
// dexOptions { // // 对依赖的库进行dex 预处理,提升增量构建速度 // preDexLibraries true // // 设置最大线程数使用,当运行dex-in-process时,默认为4 // maxProcessCount 8 // // jumboMode = true // javaMaxHeapSize "2g" // additionalParameters = ['--set-max-idx-number=65000', '--num-threads=4', '--minimal-main-dex'] // } |
编译失败:Apmplus plugin编译异常 Failed to apply plugin 'apm-plugin'.
API 'android.registerTransform' is removed. (适配依赖ByteX,APM暂时还没有插桩方式适配新版本Gradle方案)
解决方案
1.剔除插桩配置
2.替换为非插桩方式 如何根据非插桩方案接入监控能力?--应用性能监控全链路版-火山引擎