Pablichjenkov
02/25/2022, 3:14 AMlibrary
module the app
module is not able to see that specific variant of the library
.
library build.gradle:
buildTypes {
release {
isMinifyEnabled = true
isTestCoverageEnabled = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"<http://proguard-rules.pro|proguard-rules.pro>"
)
}
debug {
isJniDebuggable = true
isTestCoverageEnabled = true
}
create("customVariant") {
isJniDebuggable = true
isTestCoverageEnabled = true
matchingFallbacks += listOf("debug", "release")
}
}
sample module build.gradle:
dependencies {
implementation("androidx.appcompat:appcompat:1.4.0")
implementation ("com.google.android.material:material:1.4.0")
//Lingo SDK
implementation(project(":library", "customVariant"))
}
When trying to compile I get:
Could not determine the dependencies of task ':sample:compileDebugJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':sample:debugCompileClasspath'.
> Could not resolve project :library.
Required by:
project :sample
> Project :sample declares a dependency from configuration 'implementation' to configuration 'customVariant' which is not declared in the descriptor for project :library
Has anyone experienced something similar?
Thanks in advanceephemient
02/25/2022, 3:26 AMproject(..., configuration)
is not the name of the variant, you shouldn't override it that way anyways because there are multiple configurations for the code, android resources, etc.Pablichjenkov
02/25/2022, 3:35 AMPablichjenkov
02/25/2022, 3:37 AMephemient
02/25/2022, 3:46 AMephemient
02/25/2022, 3:49 AMPablichjenkov
02/25/2022, 4:02 AMmatchingFallbacks += listOf("customVariant", "debug", "release")
to the sample project but still the same problem. My variant is intended for release but is not necessarily the release variant.Pablichjenkov
02/25/2022, 4:04 AMdebug
and release
and my variant has to be part of one of them?ephemient
02/25/2022, 11:40 AMPablichjenkov
02/25/2022, 5:10 PMPablichjenkov
02/28/2022, 7:17 PM