If moudleA depends on moudleB, but the two projects have different buildTypes configurations
moudleA buildTypes { debug { debuggable true } simulation { debuggable true matchingFallbacks = [' release '] / / here it is automatically rely on moudleB release {} signingConfig signingConfigs. Release simulation} {minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig signingConfigs.release } } moudleB buildTypes { profile { initWith debug } release { signingConfig signingConfigs.debug } }Copy the code