dotsindicator icon indicating copy to clipboard operation
dotsindicator copied to clipboard

For Custom buildTypes Not Import

Open rohitPagare opened this issue 1 year ago • 3 comments

When i create custom build type another than debug or release like qa(Qaulity Analysis) it will through exception

FAILURE: Build completed with 11 failures.

1: Task failed with an exception.

  • What went wrong: Execution failed for task ':app:dataBindingMergeDependencyArtifactsStage'.

Could not resolve all files for configuration ':app:stageCompileClasspath'. Could not resolve com.tbuonomo:dotsindicator:4.3. Required by: project :app > No matching variant of com.tbuonomo:dotsindicator:4.3 was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'stage', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.2' but:

rohitPagare avatar Apr 19 '23 21:04 rohitPagare

I am also facing the same issue. @tommybuonomo Does anyone looking into this please add updates.

bhavesh3005sharma avatar May 09 '23 14:05 bhavesh3005sharma

The same issue :(

LinasSkardzius avatar Jun 05 '23 06:06 LinasSkardzius

Temporarily we can use this: For Kotlin:

    buildTypes {
        create("debuggee") {
            ...
            matchingFallbacks += listOf("debug")
        }
    }

For Groovy:

    buildTypes {
        debuggee {
            ...
            matchingFallbacks = ['debug']
        }
    }

The publisher must publish a new version with a SINGLE VARIANT! so that we won't need to use the trick above. Explained more in here: https://github.com/tommybuonomo/dotsindicator/issues/178

fulcrum6378 avatar Jun 24 '23 20:06 fulcrum6378