79657376

Date: 2025-06-07 22:28:35
Score: 1
Natty:
Report link

According to relevant the Android Docs, you need to manually initialize dependency configuration methods that combine a product flavor and a build type (implementation and debugImplementation are examples of dependency configuration methods, as is brieDebugImplementation):

//.gradle.kts eaxmple
val brieDebugImplementation by configurations.creating

dependencies {
    brieDebugImplementation("com.squareup.okhttp3:okhttp:4.12.0")
}
//.gradle example
configurations {
    brieDebugImplementation {}
}

dependencies {
    brieDebugImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
}

Found here: https://developer.android.com/build/dependencies#configure_dependencies_for_a_specific_build_variant

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: medavox