twitter-api-java-sdk icon indicating copy to clipboard operation
twitter-api-java-sdk copied to clipboard

javax.ws.rs:javax.ws.rs-api issue

Open vensantai opened this issue 2 years ago • 0 comments

When I included the SDK into my project and rebuild project, it make error as below:

Execution failed for task ':app:mergeExtDexAppDebug'.

Could not resolve all files for configuration ':app:AppDebugRuntimeClasspath'. Failed to transform twitter-api-java-sdk-2.0.3.jar (com.twitter:twitter-api-java-sdk:2.0.3) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=23, 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:AppDebugRuntimeClasspath'. > No variants of javax.ws.rs:javax.ws.rs-api:2.1.1 match the consumer attributes: - javax.ws.rs:javax.ws.rs-api:2.1.1 configuration runtime declares a component for use during runtime: - Incompatible because this component declares a component, as well as attribute 'artifactType' with value '${packaging.type}' and the consumer needed a component, as well as 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 com.android.build.api.attributes.AgpVersionAttr (required '8.1.0') - Doesn't say anything about com.android.build.api.attributes.BuildTypeAttr (required 'debug') - Doesn't say anything about com.android.build.api.attributes.ProductFlavor:project (required 'Qubii_Pro') - Doesn't say anything about dexing-enable-desugaring (required 'true') - Doesn't say anything about dexing-enable-jacoco-instrumentation (required 'false') - Doesn't say anything about dexing-is-debuggable (required 'true') - Doesn't say anything about dexing-min-sdk (required '23') - Doesn't say anything about its target Java environment (preferred optimized for Android) - Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'androidJvm')

vensantai avatar Aug 04 '23 08:08 vensantai