解决Error:All flavors must now belong to a named flavor dimension
前言 最近写的项目越来越大,出现了64K问题,所以用了Multidex来突破64K方法数限制,然后为了优化编译速度在build.gradle文件中加入了如下代码 productFlavors { // Define separate dev and prod product flavors. dev { // dev utilizes minSDKVersion = 21 to allow the Android gradle plugin // to pre-dex each module and produce an APK that can be tested on // Android Lollipop without time consuming dex merging processes. minSdkVersion 18 } prod { // The actual minSdkVersion for the application. minSdkVersion 16 } } 可是编译后却出现了如下问题。 出现的原因 经过在网上查阅资料发现是因为Plugin 3.0.0之...