Closed ederdoski closed 1 year ago
same issue...any solution?
Same issue here.
For the time being you can include it as project level library.
Add this to your build.gradle (app level)
implementation files('libs/dotsindicator-4.3-release.aar')
And make sure dotsindicator-4.3-release.aar
is inside
project/app/libs/dotsindicator-4.3-release.aar
You can download lib from maven central - 4.3 aar
For more version info checkout - Maven Central Repo
We have the same issue with the new version 4.3
Try this solution:
Use
matchingFallbacks
to specify alternative matches for a given build type
Your app includes a build type that a library dependency does not.
It works for me
Thanks @Helton57, I looked through doc. In my case, i added staging build type, as the lib does not have such build type, we should give alternative build types like below.
staging { .... matchingFallbacks = ['debug', 'qa', 'release'] }
Now it worked without a problem!
When adding a different buildType than debug
or release
, please add the matchingFallbacks
parameter to your custom buildType (reference)
Groovy
// In the app's build.gradle file.
android {
buildTypes {
debug {}
release {}
staging {
// Specifies a sorted list of fallback build types that the
// plugin can try to use when a dependency does not include a
// "staging" build type. You may specify as many fallbacks as you
// like, and the plugin selects the first build type that's
// available in the dependency.
matchingFallbacks = ['debug', 'qa', 'release']
}
}
}
Kotlin
// In the app's build.gradle.kts file.
android {
buildTypes {
getByName("debug") {}
getByName("release") {}
create("staging") {
// Specifies a sorted list of fallback build types that the
// plugin can try to use when a dependency does not include a
// "staging" build type. You may specify as many fallbacks as you
// like, and the plugin selects the first build type that's
// available in the dependency.
matchingFallbacks += listOf("debug", "release")
}
}
}
Hello !! i update the library from 4.1.2 to 4.3 but i the project doent recognize the library i was investiganting the problem and i can see is asociated to the build variants for reason uknown.
when the project is compiled in "debug" or "release" the library is reconigze but in other variants not, i found this error in de build log :
i appreciate your help