Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build error with Iroha dependency in an Android app #259

Open
6r1d opened this issue Aug 2, 2022 · 0 comments
Open

Gradle build error with Iroha dependency in an Android app #259

6r1d opened this issue Aug 2, 2022 · 0 comments

Comments

@6r1d
Copy link

6r1d commented Aug 2, 2022

Log:

Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform iroha-java-8.0.0.jar (com.github.hyperledger:iroha-java:8.0.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
         > No variants of io.grpc:protoc-gen-grpc-java:1.33.1 match the consumer attributes:
             - io.grpc:protoc-gen-grpc-java:1.33.1:
                 - Incompatible because this component declares attribute 'artifactType' with value 'pom' and the consumer needed attribute 'artifactType' with value 'android-classes-jar'
                 - Other compatible attributes:
                     - Doesn't say anything about asm-transformed-variant (required 'NONE')
                     - Doesn't say anything about dexing-enable-desugaring (required 'true')
                     - Doesn't say anything about dexing-is-debuggable (required 'true')
                     - Doesn't say anything about dexing-min-sdk (required '16')
   > Failed to transform testcontainers-8.0.0.jar (com.github.hyperledger.iroha-java:testcontainers:8.0.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
         > No variants of io.grpc:protoc-gen-grpc-java:1.33.1 match the consumer attributes:
             - io.grpc:protoc-gen-grpc-java:1.33.1:
                 - Incompatible because this component declares attribute 'artifactType' with value 'pom' and the consumer needed attribute 'artifactType' with value 'android-classes-jar'
                 - Other compatible attributes:
                     - Doesn't say anything about asm-transformed-variant (required 'NONE')
                     - Doesn't say anything about dexing-enable-desugaring (required 'true')
                     - Doesn't say anything about dexing-is-debuggable (required 'true')
                     - Doesn't say anything about dexing-min-sdk (required '16')
   > Failed to transform client-8.0.0.jar (com.github.hyperledger.iroha-java:client:8.0.0) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-is-debuggable=true, dexing-min-sdk=16, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
         > No variants of io.grpc:protoc-gen-grpc-java:1.33.1 match the consumer attributes:
             - io.grpc:protoc-gen-grpc-java:1.33.1:
                 - Incompatible because this component declares attribute 'artifactType' with value 'pom' and the consumer needed attribute 'artifactType' with value 'android-classes-jar'
                 - Other compatible attributes:
                     - Doesn't say anything about asm-transformed-variant (required 'NONE')
                     - Doesn't say anything about dexing-enable-desugaring (required 'true')
                     - Doesn't say anything about dexing-is-debuggable (required 'true')
                     - Doesn't say anything about dexing-min-sdk (required '16')

BUILD FAILED in 3m 10s
Exception: Gradle task assembleDebug failed with exit code 1

Possibly needs additional data:

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

Iroha-java dependency added as:

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.github.hyperledger:iroha-java:8.0.0'
}

Source

Hyperledger Iroha Community Telegram

Who can help?

@iceseer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant