Zach
10/05/2022, 5:17 PMregister("review") {
isDebuggable = false
isMinifyEnabled = false
}
But when I go to actually build the app, I get a significant amount of errors and warnings having to do with my other modules not containing the review
buildType (errors in thread). I have attempted to add the same build type to all modules with no luck, as well as trying missingDimensionStrategy
in my app module and still no change. What am I missing to add a custom build type to a multi module app?Zach
10/05/2022, 5:17 PM* What went wrong:
Could not determine the dependencies of task ':app:lintAnalyzeProductionReview'.
> Could not resolve all task dependencies for configuration ':app:productionReviewUnitTestRuntimeClasspath'.
> Could not resolve project :designSystem.
Required by:
project :app
> No matching variant of project :designSystem was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'review', attribute 'com.android.build.api.attributes.ProductFlavor:version' with value 'production', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- Variant 'debugApiElements' capability Step Out:designSystem:unspecified declares a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'review'
- Other compatible attribute:
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:version (required 'production')
- Variant 'debugRuntimeElements' capability Step Out:designSystem:unspecified declares a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'review'
- Other compatible attribute:
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:version (required 'production')
- Variant 'releaseApiElements' capability Step Out:designSystem:unspecified declares a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'review'
- Other compatible attribute:
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:version (required 'production')
- Variant 'releaseRuntimeElements' capability Step Out:designSystem:unspecified declares a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.2', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'review'
- Other compatible attribute:
- Doesn't say anything about com.android.build.api.attributes.ProductFlavor:version (required 'production')
Kibet Theophilus
10/06/2022, 9:00 AMcreate("review") {
isDebuggable = false
isMinifyEnabled = false
}